/* Game pack 5 styles: code, guesswho, plank, rhyme, swap, dressgoat (Pirate Letters, ages 5-6) */
.p5-finger{position:absolute;left:0;top:0;width:76px;height:76px;margin:-38px 0 0 -38px;z-index:60;pointer-events:none;opacity:0;transition:opacity .25s}
.p5-finger.on{opacity:1}
.p5-finger svg{display:block}
.p5-finger.press{animation:p5-press .5s ease-in-out}
@keyframes p5-press{50%{scale:.78}}
.wordsvg{display:block}

/* ---------- code ---------- */
.gstage.code{background:url(../img/code_beach.webp) center 30%/cover}
.code-row{position:absolute;left:0;right:0;top:2.5%;display:flex;justify-content:center;gap:26px;z-index:3}
.code-col{display:flex;flex-direction:column;align-items:center;gap:12px;animation:code-in .55s cubic-bezier(.2,1.4,.4,1) both}
.code-card{width:100%;box-sizing:border-box;border-radius:22px;background:#FFFDF6;border:4px solid #E3CFA6;box-shadow:0 5px 0 rgba(150,110,60,.25);display:grid;place-items:center;padding:8px;touch-action:none;cursor:pointer;transition:box-shadow .3s,border-color .3s}
.code-card img{width:100%;height:100%;object-fit:contain;pointer-events:none;min-height:0}
.code-col.on .code-card{border-color:#F4B73E;box-shadow:0 0 0 6px rgba(244,183,62,.45),0 5px 0 rgba(150,110,60,.25);animation:code-bob 1.6s ease-in-out infinite}
.code-slot{box-sizing:border-box;border-radius:18px;border:4px dashed #B88A52;background:rgba(255,250,236,.75);display:grid;place-items:center}
.code-col.on .code-slot{border-color:#F4B73E;background:rgba(255,240,190,.9);animation:code-slotp 1.2s ease-in-out infinite}
.code-slot.full{border:4px solid #C9965A;background:linear-gradient(#F7D9A2,#E8BD78);box-shadow:inset 0 -5px 0 rgba(120,70,30,.18)}
.code-slot.code-read{animation:code-read .5s ease-out}
.code-tray{position:absolute;left:0;right:0;display:flex;justify-content:center;gap:18px;z-index:6;pointer-events:none;transform:translateY(-50%)}
.code-tile{width:120px;height:120px;pointer-events:auto;border-radius:24px;display:grid;place-items:center;touch-action:none;cursor:pointer;position:relative;
  background:repeating-linear-gradient(8deg,rgba(120,70,30,0) 0 9px,rgba(120,70,30,.07) 10px 12px),linear-gradient(160deg,#F9DDA8,#E7B771 60%,#D9A35D);
  border:4px solid #B98546;box-shadow:0 7px 0 #9A6A35,0 12px 18px rgba(80,50,20,.22);animation:code-tilein .45s cubic-bezier(.2,1.5,.4,1) backwards;transition:translate .42s cubic-bezier(.4,0,.3,1),scale .42s,opacity .3s}
.code-tile:active{box-shadow:0 3px 0 #9A6A35}
.code-tile.code-fly{z-index:9}
.code-tile.code-gone{opacity:0;scale:.6;pointer-events:none}
.code-tile.code-wrong{animation:code-wrong .5s ease-in-out}
.code-tile.code-glow{box-shadow:0 0 0 7px rgba(255,225,120,.95),0 0 32px 10px rgba(244,183,62,.75),0 7px 0 #9A6A35;animation:code-glowb 1s ease-in-out infinite}
.code-pip{position:absolute;left:1.2%;bottom:0;z-index:5;transform-origin:50% 100%;touch-action:none}
.code-pipimg{height:100%;display:block;pointer-events:none}
.code-pirhat{position:absolute;left:30%;top:-15%;width:46%;opacity:0;transition:opacity .2s;pointer-events:none;rotate:-8deg}
.code-pip.hatted .code-pirhat{opacity:1}
.code-pip.code-no{animation:code-no .5s ease-in-out}
.code-pip.code-hop,.code-lootimg.code-hop{animation:code-hopk .5s ease-out}
.code-pip.code-dance{animation:code-dance .7s ease-in-out infinite}
.code-bag{position:absolute;right:3%;bottom:4%;z-index:5;transform-origin:50% 100%;touch-action:none}
.code-bag>img:first-child{height:100%;display:block;pointer-events:none;position:relative;z-index:2}
.code-bag.code-shake{animation:code-shakek .5s ease-in-out}
.code-gus{position:absolute;left:12%;top:8%;width:76%;z-index:1;translate:0 30%;opacity:0;transition:translate .5s cubic-bezier(.2,1.5,.4,1),opacity .2s}
.code-gus.up{translate:0 -62%;opacity:1}
.code-tag{position:absolute;left:50%;bottom:16%;translate:-50% 0;z-index:3;background:#FFFDF6;border:3px solid #B98546;border-radius:14px;padding:4px 12px;opacity:0;scale:.4;transition:opacity .3s,scale .4s cubic-bezier(.2,1.5,.4,1)}
.code-tag.on{opacity:1;scale:1}
.code-tag.code-boing{animation:code-boingk .4s}
.code-flyl{position:absolute;z-index:8;display:grid;place-items:center;border-radius:18px;background:linear-gradient(#F7D9A2,#E8BD78);transition:translate .75s ease-in,scale .75s ease-in,opacity .75s ease-in;pointer-events:none}
.code-prize{position:absolute;z-index:7;translate:-50% 0;animation:code-pop .8s cubic-bezier(.2,1.5,.4,1) both;filter:drop-shadow(0 8px 6px rgba(60,40,20,.25));pointer-events:none;transform-origin:50% 100%}
.code-p-map{animation:code-unroll .9s cubic-bezier(.2,1.4,.4,1) both}
.code-p-gem{animation:code-pop .8s cubic-bezier(.2,1.5,.4,1) both,code-twinkle 1s .8s ease-in-out 3}
.code-p-mast{animation:code-grow 1.4s cubic-bezier(.2,1.2,.4,1) both;transform-origin:50% 100%}
.code-loot{position:absolute;left:30%;right:24%;bottom:2.5%;height:96px;display:flex;justify-content:center;align-items:flex-end;gap:22px;z-index:4;pointer-events:none}
.code-lootimg{height:84px;transition:opacity .2s;filter:drop-shadow(0 4px 3px rgba(60,40,20,.2))}
.code-lootimg.tall{height:150px}
.code-wcard{background:#FFFDF6;border:4px solid #E3CFA6;border-radius:22px;padding:14px 26px;box-shadow:0 5px 0 rgba(150,110,60,.25);animation:code-in .55s cubic-bezier(.2,1.4,.4,1) both;touch-action:none}
.code-wcard.code-boing{animation:code-boingk .4s}
.code-card.code-yes{animation:code-yesk .6s ease-out}
.code-card.code-boing{animation:code-boingk .4s}
.code-card.code-wig{animation:code-wigk .7s ease-in-out}
@keyframes code-in{from{opacity:0;translate:0 -60px;scale:.6}to{opacity:1;translate:0 0;scale:1}}
@keyframes code-tilein{from{scale:.2;opacity:0}to{scale:1;opacity:1}}
@keyframes code-bob{0%,100%{translate:0 0}50%{translate:0 -7px}}
@keyframes code-slotp{0%,100%{scale:1}50%{scale:1.06}}
@keyframes code-read{0%{scale:1}40%{scale:1.25;box-shadow:0 0 0 8px rgba(255,225,120,.9)}100%{scale:1}}
@keyframes code-wrong{0%,100%{rotate:0deg}20%{rotate:-12deg}40%{rotate:10deg}60%{rotate:-7deg}80%{rotate:4deg}}
@keyframes code-glowb{50%{scale:1.08}}
@keyframes code-no{0%,100%{rotate:0deg}25%{rotate:-6deg}75%{rotate:6deg}}
@keyframes code-hopk{0%,100%{translate:0 0}40%{translate:0 -30px}}
@keyframes code-dance{0%,100%{translate:0 0;rotate:0deg}25%{translate:0 -28px;rotate:-5deg}50%{translate:0 0}75%{translate:0 -28px;rotate:5deg}}
@keyframes code-shakek{0%,100%{rotate:0deg;scale:1}20%{rotate:-7deg;scale:1.06 .94}40%{rotate:6deg}60%{rotate:-4deg;scale:.96 1.05}80%{rotate:3deg}}
@keyframes code-pop{0%{scale:0;translate:-50% 60%}60%{scale:1.15;translate:-50% -8%}100%{scale:1;translate:-50% 0}}
@keyframes code-unroll{0%{scale:0 .3;translate:-50% 60%}50%{scale:.1 1;translate:-50% 0}100%{scale:1 1;translate:-50% 0}}
@keyframes code-grow{0%{scale:.1 0;translate:-50% 0}70%{scale:1 1.06}100%{scale:1 1;translate:-50% 0}}
@keyframes code-twinkle{50%{filter:drop-shadow(0 0 22px rgba(140,200,255,1)) brightness(1.15)}}
@keyframes code-yesk{0%{scale:1}35%{scale:1.13 .9}65%{scale:.95 1.08}100%{scale:1}}
@keyframes code-boingk{0%,100%{scale:1}40%{scale:1.1}}
@keyframes code-wigk{0%,100%{rotate:0deg}20%{rotate:-6deg}40%{rotate:6deg}60%{rotate:-4deg}80%{rotate:3deg}}

/* code, round 2: brass lock slots, drag tiles, the slate, the silly prizes */
.code-slot{position:relative;border:4px solid #9C7432;background:radial-gradient(circle at 35% 30%,#F6DFA0,#D9AE5A 55%,#B88A3C);box-shadow:inset 0 3px 0 rgba(255,245,210,.6),inset 0 -5px 0 rgba(90,60,20,.3),0 5px 0 rgba(120,80,30,.3);border-radius:22px}
.code-hole{position:absolute;left:50%;top:50%;width:22%;height:42%;translate:-50% -50%;background:radial-gradient(circle at 50% 30%,#4A3420 0 38%,transparent 40%),linear-gradient(#4A3420,#4A3420) 50% 85%/34% 60% no-repeat;opacity:.85}
.code-col.on .code-slot{border-color:#F4B73E;background:radial-gradient(circle at 35% 30%,#FFF0B8,#F0C766 55%,#D3A24A);animation:code-slotp 1.2s ease-in-out infinite}
.code-slot.near{scale:1.12;box-shadow:0 0 0 8px rgba(255,225,120,.8),inset 0 3px 0 rgba(255,245,210,.6)}
.code-slot.full{border:4px solid #9C7432;background:radial-gradient(circle at 35% 30%,#F6DFA0,#D9AE5A 55%,#B88A3C)}
.code-plug{width:84%;height:84%;border-radius:16px;display:grid;place-items:center;background:linear-gradient(#FBE6B8,#EAC27E);box-shadow:inset 0 -4px 0 rgba(120,70,30,.2)}
.code-slot.code-turn .code-plug{animation:code-turnk .5s cubic-bezier(.3,1.5,.5,1)}
.code-slot.code-rattle{animation:code-rattlek .4s linear}
.code-tile{cursor:grab}
.code-tile.drag{z-index:20;scale:1.12;transition:none;box-shadow:0 7px 0 #9A6A35,0 22px 26px rgba(80,50,20,.3)}
.code-tile.code-home{transition:translate .38s cubic-bezier(.3,1.3,.5,1),scale .38s}
.code-slate{position:absolute;left:68%;top:47%;width:40%;height:28%;translate:-50% -50%;rotate:-9deg;display:grid;place-items:center;pointer-events:none}
.code-slate svg{filter:drop-shadow(0 0 1px rgba(255,255,255,.6))}
.code-slate.code-chalk{animation:code-chalkk .6s ease-out}
.code-pirhat{left:8%;top:-23%;width:60%}
.code-pip.code-toobig .code-pirhat{top:2%;width:78%;left:-1%;transition:top .3s,width .3s,left .3s}
.code-pip.code-tickle{animation:code-wigk .5s ease-in-out 3}
.code-prize.flip{animation:code-flipk 1s ease-in-out both}
.code-prize.code-run{animation:code-bounce .3s ease-in-out infinite}
.code-prize.code-chased{animation:code-chasek 3s ease-in-out both}
.code-lootimg.code-chaser{animation:code-chasek2 3s ease-in-out both}
@keyframes code-turnk{0%{rotate:0deg}60%{rotate:100deg}100%{rotate:90deg}}
.code-slot.full .code-plug{rotate:0deg}
@keyframes code-rattlek{0%,100%{translate:0 0}20%{translate:-6px 0}40%{translate:6px 0}60%{translate:-4px 0}80%{translate:4px 0}}
@keyframes code-chalkk{0%{opacity:0;scale:.6}100%{opacity:1;scale:1}}
@keyframes code-flipk{0%{rotate:180deg;translate:-50% 0}40%{rotate:180deg}70%{rotate:-15deg}100%{rotate:0deg;translate:-50% 0}}
@keyframes code-bounce{0%,100%{margin-top:0}50%{margin-top:-14px}}
@keyframes code-chasek{0%{translate:-50% 0;scale:1 1}25%{translate:calc(-50% - 700px) 30px;scale:1 1}26%{scale:-1 1}55%{translate:calc(-50% - 200px) -60px;scale:-1 1}56%{scale:1 1}100%{translate:-50% 0}}
@keyframes code-chasek2{0%{translate:0 0}20%{translate:200px -200px}45%{translate:-300px -180px;scale:-1 1}70%{translate:100px -260px;scale:1 1}100%{translate:0 0}}

/* ---------- guesswho ---------- */
.gstage.guesswho{background:radial-gradient(ellipse 60% 6% at 50% 47%,rgba(255,255,255,.5),transparent 70%),radial-gradient(ellipse 30% 9% at 22% 14%,rgba(255,255,255,.85),transparent 70%),radial-gradient(ellipse 26% 8% at 74% 9%,rgba(255,255,255,.8),transparent 70%),linear-gradient(#BFE2F4 0%,#DDF0F7 46%,#9FD3E6 47%,#7DBFD9 100%)}
.guesswho-pip{position:absolute;left:.5%;bottom:0;z-index:5;transform-origin:50% 100%;touch-action:none}
.guesswho-pip.guesswho-talk{animation:gw-talk .5s ease-in-out}
.guesswho-pip.guesswho-cheer{animation:gw-hop .5s ease-in-out 4}
.guesswho-card{position:absolute;left:1.2%;top:2.5%;z-index:6;background:#FFFDF6;border:4px solid #E3CFA6;border-radius:26px;box-shadow:0 6px 0 rgba(150,110,60,.22);padding:12px 10px 14px;display:flex;flex-direction:column;align-items:center;gap:10px;touch-action:none}
.guesswho-card::after{content:'';position:absolute;left:44%;bottom:-22px;width:30px;height:30px;background:#FFFDF6;border-right:4px solid #E3CFA6;border-bottom:4px solid #E3CFA6;rotate:45deg;border-radius:0 0 8px 0}
.guesswho-card.guesswho-pop,.guesswho-clue.guesswho-pop{animation:gw-pop .5s cubic-bezier(.2,1.5,.4,1)}
.guesswho-want{position:relative;height:84px;display:flex;align-items:center;gap:6px}
.guesswho-want img{height:76px;filter:drop-shadow(0 3px 2px rgba(0,0,0,.15))}
.guesswho-want b{font-size:62px;font-weight:900;color:#E5675B;line-height:1}
.guesswho-want.found b{color:#3E9B4F}
.guesswho-clue{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:170px;opacity:0;transition:opacity .3s}
.guesswho-clue.on{opacity:1}
.guesswho-icon{width:130px;height:104px;display:grid;place-items:center;background:#FFF3D6;border-radius:20px}
.guesswho-icon img,.guesswho-icon svg{max-width:112px;max-height:92px}
.guesswho-n{display:flex;gap:8px;margin-top:2px}
.guesswho-n i{width:16px;height:16px;border-radius:50%;background:#E6DDCB}
.guesswho-n i.on{background:#F4B73E}
.guesswho-row{position:absolute;z-index:2}
.guesswho-row:nth-of-type(2){z-index:3}
.guesswho-clip{position:absolute;left:0;right:0;top:0;overflow:hidden}
.guesswho-rail{position:absolute;left:-8px;right:-8px;bottom:0;border-radius:14px;border:3px solid #6E4322;z-index:2;background:linear-gradient(rgba(255,232,190,.45),rgba(255,232,190,0) 22%,rgba(0,0,0,0) 75%,rgba(60,30,10,.3)),repeating-linear-gradient(90deg,rgba(0,0,0,0) 0 146px,rgba(90,50,22,.5) 146px 151px,rgba(255,220,170,.25) 151px 153px),repeating-linear-gradient(2deg,rgba(110,60,25,0) 0 6px,rgba(110,60,25,.13) 7px 8px,rgba(110,60,25,0) 9px 13px),linear-gradient(#CD945B,#B07642 55%,#935E31);box-shadow:0 7px 12px rgba(40,30,20,.28)}
.guesswho-ch{position:absolute;top:0;bottom:0;display:flex;align-items:flex-end;justify-content:center;touch-action:none;cursor:pointer;animation:gw-in .5s cubic-bezier(.2,1.4,.4,1) backwards}
.guesswho-ch>img:first-child{display:block;transform-origin:50% 100%;transition:translate .45s cubic-bezier(.5,-.3,.6,1);pointer-events:none;filter:drop-shadow(0 4px 3px rgba(40,30,20,.18))}
.guesswho-ch.down>img:first-child{translate:0 88%}
.guesswho-ch.guesswho-peek.down>img:first-child{animation:gw-peek .9s ease-in-out}
.guesswho-ch.guesswho-hop>img:first-child{animation:gw-hop .45s ease-out}
.guesswho-ch.guesswho-nope>img:first-child{animation:gw-nope .6s ease-in-out}
.guesswho-ch.guesswho-wig>img:first-child{animation:gw-nope .7s ease-in-out}
.guesswho-ch.guesswho-fit>img:first-child{filter:drop-shadow(0 0 10px rgba(255,214,90,.95)) drop-shadow(0 4px 3px rgba(40,30,20,.18))}
.guesswho-ch.winner>img:first-child{animation:gw-win 1s ease-in-out infinite}
.guesswho-ch.guesswho-dance>img:first-child{animation:gw-hop .6s ease-in-out infinite;animation-delay:inherit}
.guesswho-prize{position:absolute;left:50%;top:1%;height:30%;translate:-50% 0;z-index:3;animation:gw-prize .8s cubic-bezier(.2,1.5,.4,1) both,gw-shine 1.2s .8s ease-in-out infinite;pointer-events:none}
@keyframes gw-in{from{opacity:0;translate:0 60px}to{opacity:1;translate:0 0}}
@keyframes gw-talk{0%,100%{scale:1}50%{scale:1.04 .97}}
@keyframes gw-hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-24px)}}
@keyframes gw-pop{0%{scale:.85}60%{scale:1.06}100%{scale:1}}
@keyframes gw-peek{0%,100%{translate:0 88%}35%,65%{translate:0 55%}}
@keyframes gw-nope{0%,100%{transform:rotate(0) scale(1)}20%{transform:rotate(-7deg) scale(1.06)}40%{transform:rotate(7deg) scale(1.06)}60%{transform:rotate(-5deg)}80%{transform:rotate(4deg)}}
@keyframes gw-win{0%,100%{transform:translateY(0) scale(1.05)}50%{transform:translateY(-16px) scale(1.08)}}
@keyframes gw-prize{0%{scale:0;rotate:-30deg}100%{scale:1;rotate:0deg}}
@keyframes gw-shine{50%{filter:drop-shadow(0 0 16px rgba(255,230,140,1))}}

/* ---------- plank ---------- */
.gstage.plank{background:linear-gradient(#BFDDF0 0%,#DCEBF2 20%,#F1F1EC 34%)}
.plank-gorge{position:absolute;left:0;width:100%;z-index:0;pointer-events:none;-webkit-mask-image:linear-gradient(transparent,#000 9%);mask-image:linear-gradient(transparent,#000 9%)}
.plank-ledge{position:absolute;left:0;width:100%;z-index:4;pointer-events:none;filter:drop-shadow(0 -4px 8px rgba(60,50,30,.2))}
.plank-rope{position:absolute;left:0;top:0;z-index:2;pointer-events:none}
.plank-slot{position:absolute;box-sizing:border-box;border:4px dashed rgba(255,250,236,.95);border-radius:14px;background:rgba(255,250,236,.28);z-index:2;transition:background .2s,scale .2s}
.plank-slot.near{background:rgba(255,226,140,.7);border-color:#F4B73E;scale:1.08}
.plank-plank{position:absolute;left:0;top:0;z-index:6;display:grid;place-items:center;touch-action:none;cursor:grab;border-radius:12px;border:4px solid #7E5230;
  background:repeating-linear-gradient(1deg,rgba(90,50,20,0) 0 7px,rgba(90,50,20,.13) 8px 9px,rgba(90,50,20,0) 10px 15px),linear-gradient(#D8A468,#BE854C 60%,#A9713D);
  box-shadow:inset 0 4px 0 rgba(255,225,175,.45),0 6px 0 #6E4527,0 10px 14px rgba(40,25,10,.25);animation:plank-in .5s cubic-bezier(.2,1.5,.4,1) backwards;will-change:transform}
.plank-plank::before,.plank-plank::after{content:'';position:absolute;top:50%;width:9px;height:9px;margin-top:-4px;border-radius:50%;background:#5A3820;box-shadow:inset 1px 1px 0 rgba(255,255,255,.3)}
.plank-plank::before{left:8px}.plank-plank::after{right:8px}
.plank-lab{position:relative;z-index:1;background:rgba(255,246,226,.88);border-radius:12px;padding:0 10px;display:block}
.plank-plank.glide{transition:transform .36s cubic-bezier(.3,1.3,.5,1)}
.plank-plank.drag{z-index:20;cursor:grabbing;box-shadow:inset 0 4px 0 rgba(255,225,175,.45),0 6px 0 #6E4527,0 22px 26px rgba(40,25,10,.3)}
.plank-plank.drag .plank-lab{scale:1.06}
.plank-plank.plank-land .plank-lab{animation:plank-landk .3s ease-out}
.plank-plank.plank-wig{animation:plank-wigk .6s ease-in-out}
.plank-plank.plank-wobble{animation:plank-wigk .6s ease-in-out}
.plank-plank.flip{transition:transform .8s ease-in,opacity .8s;opacity:.0}
.plank-plank.drop{transition:transform 1s ease-in,opacity 1s;opacity:0;margin-top:260px}
.plank-pip{position:absolute;left:0;top:0;z-index:3;transform-origin:45% 100%;touch-action:none;will-change:transform}
.plank-pip img{height:100%;display:block;pointer-events:none;transform-origin:50% 100%}
.plank-pip.walk img{animation:plank-waddle .22s ease-in-out infinite}
.plank-pip.flap img{animation:plank-flapk .18s ease-in-out infinite}
.plank-pip.plank-shake img{animation:plank-shakek .5s ease-in-out 3}
.plank-pip.plank-cheer img{animation:plank-hopk .5s ease-out 2}
.plank-pip.dance img{animation:plank-hopk .6s ease-in-out infinite}
.plank-far{position:absolute;z-index:1;touch-action:none;transform-origin:50% 100%}
.plank-far img{height:100%;display:block;pointer-events:none;filter:drop-shadow(0 6px 4px rgba(40,30,20,.2))}
.plank-far.plank-hooray img{animation:plank-hopk .55s ease-out}
.plank-f-fish{z-index:1}
.plank-far.plank-f-fish img{animation:plank-bob 2.4s ease-in-out infinite}
.plank-far.jump img{animation:plank-fishjump 1.3s ease-in-out 2}
.plank-far.dance img{animation:plank-crab .5s ease-in-out infinite}
.plank-far.open img{animation:plank-chest .5s ease-in-out infinite}
@keyframes plank-in{from{opacity:0;margin-top:-40px}to{opacity:1;margin-top:0}}
@keyframes plank-landk{0%,100%{scale:1}40%{scale:1.15}}
@keyframes plank-wigk{0%,100%{rotate:0deg}20%{rotate:-8deg}40%{rotate:8deg}60%{rotate:-6deg}80%{rotate:5deg}}
@keyframes plank-waddle{0%,100%{rotate:-4deg}50%{rotate:4deg}}
@keyframes plank-flapk{0%,100%{scale:1}50%{scale:1.06 .94}}
@keyframes plank-shakek{0%,100%{rotate:0deg}25%{rotate:-8deg}75%{rotate:8deg}}
@keyframes plank-hopk{0%,100%{translate:0 0}40%{translate:0 -30px}}
@keyframes plank-bob{0%,100%{translate:0 0;rotate:-4deg}50%{translate:0 -14px;rotate:4deg}}
@keyframes plank-fishjump{0%,100%{translate:0 0;rotate:0deg}45%{translate:-30px -70px;rotate:-20deg}70%{translate:-50px -20px;rotate:-35deg}}
@keyframes plank-crab{0%,100%{translate:-14px 0;rotate:-5deg}50%{translate:14px -10px;rotate:5deg}}
@keyframes plank-chest{0%,100%{scale:1;rotate:0deg}50%{scale:1.08;rotate:3deg}}

/* ---------- rhyme ---------- */
.gstage.rhyme{background:radial-gradient(ellipse 22% 7% at 70% 10%,rgba(255,255,255,.9),transparent 70%),radial-gradient(ellipse 16% 5% at 40% 6%,rgba(255,255,255,.8),transparent 70%),linear-gradient(#BFE3F5,#E6F4F8)}
.rhyme-sea{position:absolute;left:0;right:0;bottom:0;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse 30% 3% at 20% 18%,rgba(255,255,255,.35),transparent 70%),radial-gradient(ellipse 25% 3% at 70% 40%,rgba(255,255,255,.25),transparent 70%),radial-gradient(ellipse 35% 4% at 40% 66%,rgba(255,255,255,.18),transparent 70%),radial-gradient(ellipse 50% 18% at 50% 104%,#C9B98A 60%,transparent 62%),linear-gradient(#7FC4DE,#4FA3C9 45%,#2F7FAE)}
.rhyme-sea::before{content:'';position:absolute;left:0;right:0;top:-10px;height:22px;background:radial-gradient(circle at 20px 22px,#7FC4DE 14px,transparent 15px) 0 0/40px 22px repeat-x;opacity:.95}
.rhyme-boat{position:absolute;z-index:4;transform-origin:50% 80%;animation:rhyme-bob 3s ease-in-out infinite;touch-action:none;filter:drop-shadow(0 6px 4px rgba(20,40,60,.18))}
.rhyme-boat.rhyme-rock{animation:rhyme-rockk .7s ease-in-out}
.rhyme-boat.rhyme-party,.rhyme-gus.rhyme-party{animation:rhyme-partyk .6s ease-in-out infinite}
.rhyme-card{position:absolute;top:3%;z-index:7;background:#FFFDF6;border:4px solid #E3CFA6;border-radius:24px;box-shadow:0 6px 0 rgba(150,110,60,.22);padding:10px 22px 12px;display:flex;flex-direction:column;align-items:center;gap:4px;touch-action:none}
.rhyme-card img{height:86px;max-width:150px;object-fit:contain}
.rhyme-card.rhyme-flip{animation:rhyme-flipk .55s ease-out}
.rhyme-card.match{border-color:#3E9B4F;box-shadow:0 0 0 6px rgba(125,197,127,.5),0 6px 0 rgba(150,110,60,.22)}
.rhyme-gus{position:absolute;z-index:4;transform-origin:50% 90%;animation:rhyme-bob 3.4s -1s ease-in-out infinite;touch-action:none}
.rhyme-gus.rhyme-munch{animation:rhyme-munchk .25s ease-in-out 4}
.rhyme-line{position:absolute;left:0;top:0;z-index:6;pointer-events:none}
.rhyme-line .rod{fill:none;stroke:#7A5434;stroke-width:7;stroke-linecap:round}
.rhyme-line .ln{fill:none;stroke:rgba(255,255,255,.95);stroke-width:2.5}
.rhyme-hook{position:absolute;left:0;top:0;width:80px;height:110px;z-index:8;touch-action:none;cursor:grab;display:grid;place-items:start center}
.rhyme-hook::before{content:'';position:absolute;left:4px;top:-4px;width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.22);border:3px dashed rgba(255,255,255,.7)}
.rhyme-hook svg{width:44px;height:66px;position:relative}
.rhyme-hook.held::before{background:rgba(255,236,170,.4);border-color:#F4B73E}
.rhyme-hook.rhyme-wig svg{animation:rhyme-wigk .6s ease-in-out}
.rhyme-fish{position:absolute;left:0;top:0;z-index:3;touch-action:none;will-change:transform;animation:rhyme-fin .6s ease-out backwards}
@keyframes rhyme-fin{from{opacity:0}to{opacity:1}}
.rhyme-fish .body{width:100%;display:block;pointer-events:none;filter:drop-shadow(0 6px 5px rgba(10,40,70,.25))}
.rhyme-fish.left .body{transform:scaleX(-1)}
.rhyme-tag{position:absolute;left:50%;top:14%;translate:-50% 0;background:#FFFDF6;border:3px solid #E3CFA6;border-radius:16px;padding:4px 10px 6px;display:flex;flex-direction:column;align-items:center;gap:0;box-shadow:0 4px 0 rgba(10,40,70,.18);pointer-events:none}
.rhyme-tag img{height:40px;max-width:76px;object-fit:contain}
.rhyme-fish.rhyme-wig .body{animation:rhyme-wigk .5s ease-in-out}
.rhyme-fish.glow .rhyme-tag{box-shadow:0 0 0 6px rgba(255,225,120,.95),0 0 26px 8px rgba(244,183,62,.7)}
.rhyme-fish.hooked{z-index:7}
.rhyme-fish.sniff .body{animation:rhyme-wigk .3s ease-in-out infinite}
.rhyme-fish.pair .rhyme-tag{border-color:#3E9B4F;scale:1.25;transition:scale .3s}
.rhyme-fish.togus,.rhyme-fish.inboat{transition:transform .6s ease-in}
.rhyme-fish.eaten{opacity:0;transition:opacity .4s .2s,transform .6s ease-in}
.rhyme-visit{position:absolute;z-index:2;pointer-events:none;opacity:0}
.rhyme-visit.v-gull{top:4%;left:0;width:150px;opacity:1;z-index:3;animation:rhyme-gullk 7s linear forwards}
.rhyme-visit.v-whale{right:22%;top:24%;width:200px;opacity:1;z-index:0;animation:rhyme-whalek 6s ease-in-out forwards}
.rhyme-visit.v-crab{left:2%;bottom:1%;width:120px;opacity:1;z-index:2;animation:rhyme-crabk .8s ease-in-out infinite}
.rhyme-visit.v-fin{top:29%;left:0;width:170px;opacity:1;z-index:2;animation:rhyme-fink 9s linear forwards}
.rhyme-jumper{position:absolute;z-index:6;pointer-events:none;animation:rhyme-jump 1.2s ease-in-out infinite backwards}
@keyframes rhyme-bob{0%,100%{translate:0 0;rotate:-1.5deg}50%{translate:0 6px;rotate:1.5deg}}
@keyframes rhyme-rockk{0%,100%{rotate:0deg}30%{rotate:-6deg}70%{rotate:5deg}}
@keyframes rhyme-partyk{0%,100%{translate:0 0;rotate:-4deg}50%{translate:0 -18px;rotate:4deg}}
@keyframes rhyme-flipk{0%{scale:1}35%{scale:.2 1}70%{scale:1.08 1}100%{scale:1}}
@keyframes rhyme-munchk{0%,100%{scale:1}50%{scale:1.08 .92}}
@keyframes rhyme-wigk{0%,100%{rotate:0deg}25%{rotate:-12deg}75%{rotate:12deg}}
@keyframes rhyme-gullk{from{translate:-200px 0}to{translate:1400px 40px}}
@keyframes rhyme-whalek{0%{translate:0 80px;opacity:0}25%,75%{translate:0 0;opacity:1}100%{translate:0 80px;opacity:0}}
@keyframes rhyme-crabk{0%,100%{rotate:-6deg}50%{rotate:6deg}}
@keyframes rhyme-fink{from{translate:1300px 0}to{translate:-300px 0}}
@keyframes rhyme-jump{0%,100%{translate:0 40px;rotate:0deg}50%{translate:calc(var(--d) * 30px) -120px;rotate:calc(var(--d) * -30deg)}}

/* ---------- swap ---------- */
.gstage.swap{background:url(../img/code_beach.webp) center 30%/cover}
.swap-pip{position:absolute;left:1%;bottom:0;z-index:4;transform-origin:50% 100%;touch-action:none}
.swap-pip.swap-hop{animation:code-hopk .5s ease-out 2}
.swap-pip.swap-shake{animation:code-no .5s ease-in-out}
.swap-pip.swap-dance{animation:code-dance .7s ease-in-out infinite}
.swap-think{position:absolute;left:2%;top:3%;width:230px;height:210px;z-index:5;touch-action:none}
.swap-think i{position:absolute;border-radius:50%;background:#FFFDF6;border:4px solid #E3CFA6}
.swap-think i:nth-child(1){left:120px;top:205px;width:22px;height:22px}
.swap-think i:nth-child(2){left:136px;top:178px;width:32px;height:32px}
.swap-cloud{position:absolute;inset:0 0 34px 0;background:#FFFDF6;border:4px solid #E3CFA6;border-radius:48% 52% 46% 54%/56% 50% 50% 44%;box-shadow:0 6px 0 rgba(150,110,60,.18),inset 0 0 0 10px rgba(255,243,214,.6);display:grid;place-items:center}
.swap-cloud img{position:absolute;left:17%;top:15%;width:66%;height:70%;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(0,0,0,.12))}
.swap-think.yes .swap-cloud{border-color:#3E9B4F;box-shadow:0 0 0 6px rgba(125,197,127,.5)}
.swap-think.swap-in,.swap-think.swap-boing{animation:code-boingk .45s}
.swap-pic{position:absolute;top:4.5%;width:280px;height:230px;z-index:3;display:grid;place-items:center;touch-action:none;background:radial-gradient(closest-side,rgba(255,253,246,.95),rgba(255,253,246,.75) 70%,rgba(255,253,246,0));border-radius:50%}
.swap-pic>img{position:absolute;left:7%;top:5%;width:86%;height:90%;object-fit:contain;filter:drop-shadow(0 6px 5px rgba(60,40,20,.2));transition:scale .25s,opacity .25s}
.swap-pic.swap-in>img{animation:swap-ink .5s cubic-bezier(.2,1.5,.4,1)}
.swap-pic.swap-boing>img{animation:code-boingk .4s}
.swap-pic.poof>img{scale:.2;opacity:0}
.swap-poof{position:absolute;inset:-20px;border-radius:50%;pointer-events:none;opacity:0;background:radial-gradient(circle at 35% 40%,#FFFFFF 0 18%,transparent 19%),radial-gradient(circle at 62% 35%,#FFFFFF 0 20%,transparent 21%),radial-gradient(circle at 50% 62%,#F4F1FF 0 24%,transparent 25%),radial-gradient(circle at 28% 64%,#FFFFFF 0 15%,transparent 16%),radial-gradient(circle at 72% 62%,#FFFFFF 0 16%,transparent 17%)}
.swap-pic.poof .swap-poof{animation:swap-poofk .9s ease-out}
.swap-pic.swap-fox>img{animation:swap-jump .6s ease-out 2}
.swap-pic.swap-cat>img{animation:swap-run 1.6s ease-in-out}
.swap-pic.swap-pan>img{animation:swap-ring .12s linear 6}
.swap-pic.swap-hut>img,.swap-pic.swap-mug>img{animation:swap-ink .6s cubic-bezier(.2,1.6,.4,1)}
.swap-pic.swap-mop>img,.swap-pic.swap-sweep>img{animation:swap-sweepk .5s ease-in-out infinite;transform-origin:50% 0}
.swap-word{position:absolute;left:0;right:0;display:flex;justify-content:center;gap:16px;z-index:3}
.swap-word.swap-wobble{animation:code-wigk .5s ease-in-out}
.swap-box{box-sizing:border-box;border-radius:22px;background:#FFFDF6;border:4px solid #E3CFA6;box-shadow:0 6px 0 rgba(150,110,60,.25);display:grid;place-items:center;touch-action:none;transition:border-color .2s,scale .2s,background .2s}
.swap-box.near{border-color:#F4B73E;background:#FFF3CF;scale:1.08}
.swap-box.hint{border-color:#F4B73E;box-shadow:0 0 0 6px rgba(255,214,90,.6),0 6px 0 rgba(150,110,60,.25);animation:code-glowb 1s ease-in-out infinite}
.swap-box.new{border-color:#3E9B4F;background:#EAF6E6;animation:code-read .6s ease-out}
.swap-box.wrong{border-color:#E5675B;background:#FDECEA}
.swap-box.swap-boing{animation:code-boingk .4s}
.swap-old{position:absolute;z-index:9;display:grid;place-items:center;border-radius:22px;pointer-events:none;transition:translate 1s ease-in,rotate 1s ease-in,opacity 1s}
.swap-old.fly{translate:120px -260px;rotate:200deg;opacity:0}
.swap-tray{position:absolute;left:0;right:0;display:flex;justify-content:center;gap:26px;z-index:6;transform:translateY(-50%);pointer-events:none}
.swap-tile{width:118px;height:118px;border-radius:24px;display:grid;place-items:center;touch-action:none;cursor:grab;pointer-events:auto;
  background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.55),transparent 40%),linear-gradient(160deg,#D9C2F2,#B58BE0 60%,#9C6FD0);
  border:4px solid #7E52B5;box-shadow:0 7px 0 #6A3F9E,0 12px 18px rgba(60,30,90,.25);animation:code-tilein .45s cubic-bezier(.2,1.5,.4,1) backwards}
.swap-tile svg path{stroke:#FFFDF6}
.swap-tile.drag{z-index:20;scale:1.1;box-shadow:0 7px 0 #6A3F9E,0 22px 26px rgba(60,30,90,.3)}
.swap-tile.back{transition:translate .35s cubic-bezier(.3,1.3,.5,1)}
.swap-tile.gone{opacity:0;transition:opacity .25s .15s}
.swap-tile.fade{opacity:0;scale:.5;transition:opacity .3s,scale .3s}
.swap-tile.hint{box-shadow:0 0 0 7px rgba(255,225,120,.95),0 0 32px 10px rgba(244,183,62,.75),0 7px 0 #6A3F9E}
.swap-tile.swap-wig{animation:code-wigk .5s}
.swap-shelf{position:absolute;right:2%;bottom:2%;width:340px;z-index:3;display:flex;flex-direction:column;gap:0}
.swap-srow{height:112px;display:flex;justify-content:center;align-items:flex-end;gap:14px;padding:0 10px}
.swap-board{height:20px;border-radius:10px;background:linear-gradient(#C99560,#A06B3A);border:3px solid #7A4E2A;box-shadow:0 6px 8px rgba(60,40,20,.25);margin-bottom:8px}
.swap-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:96px;height:108px;touch-action:none;border-radius:16px;transition:background .25s,box-shadow .25s}
.swap-item img{max-height:72px;max-width:90px;object-fit:contain;filter:drop-shadow(0 4px 3px rgba(60,40,20,.2));pointer-events:none}
.swap-item svg{pointer-events:none;margin-top:-2px}
.swap-item.lit{background:rgba(255,240,180,.95);box-shadow:0 0 0 5px rgba(244,183,62,.85)}
.swap-item.swap-in{animation:swap-ink .5s cubic-bezier(.2,1.6,.4,1)}
.swap-item.swap-boing{animation:code-hopk .45s ease-out}
@keyframes swap-ink{0%{scale:.2}100%{scale:1}}
@keyframes swap-poofk{0%{opacity:0;scale:.4}30%{opacity:1;scale:1.05}100%{opacity:0;scale:1.4}}
@keyframes swap-jump{0%,100%{translate:0 0}40%{translate:0 -60px;rotate:-8deg}}
@keyframes swap-run{0%{translate:0 0}35%{translate:260px 0;scale:-1 1}36%{scale:-1 1}70%{translate:-200px 0;scale:1 1}100%{translate:0 0}}
@keyframes swap-ring{0%,100%{rotate:-4deg}50%{rotate:4deg}}
@keyframes swap-sweepk{0%,100%{rotate:-14deg}50%{rotate:14deg}}

/* ---------- dressgoat ---------- */
.gstage.dressgoat{background:radial-gradient(ellipse 22% 7% at 30% 10%,rgba(255,255,255,.9),transparent 70%),radial-gradient(ellipse 18% 5% at 70% 6%,rgba(255,255,255,.8),transparent 70%),linear-gradient(#C3E4F5,#E8F5F8 40%)}
.dressgoat-sea{position:absolute;left:0;right:0;top:44%;bottom:0;z-index:0;background:radial-gradient(ellipse 30% 3% at 20% 20%,rgba(255,255,255,.35),transparent 70%),radial-gradient(ellipse 25% 3% at 60% 50%,rgba(255,255,255,.25),transparent 70%),linear-gradient(#86C9E1,#58A9CD 50%,#3A8AB6)}
.dressgoat-sea::before{content:'';position:absolute;left:0;right:0;top:-10px;height:22px;background:radial-gradient(circle at 20px 22px,#86C9E1 14px,transparent 15px) 0 0/40px 22px repeat-x}
.dressgoat-boatw{position:absolute;z-index:2;transform-origin:45% 70%;animation:rhyme-bob 3.6s ease-in-out infinite}
.dressgoat-boatw.dressgoat-rock{animation:rhyme-partyk .8s ease-in-out infinite}
.dressgoat-boat{width:100%;display:block;pointer-events:none;filter:drop-shadow(0 8px 6px rgba(20,40,60,.2))}
.dressgoat-gus{position:absolute;z-index:3;transform-origin:50% 100%;touch-action:none;transition:filter .2s}
.dressgoat-gus>img:first-child{width:100%;height:100%;display:block;pointer-events:none}
.dressgoat-gus.near,.dressgoat-pip.near{filter:drop-shadow(0 0 14px rgba(255,214,90,1))}
.dressgoat-gus.glow{filter:drop-shadow(0 0 14px rgba(255,214,90,1))}
.dressgoat-gus.dressgoat-happy,.dressgoat-pip.dressgoat-happy{animation:code-hopk .5s ease-out}
.dressgoat-gus.dressgoat-shake{animation:code-shakek .55s ease-in-out}
.dressgoat-gus.dressgoat-show{animation:dressgoat-showk 1.4s ease-in-out}
.dressgoat-gus.dressgoat-party,.dressgoat-pip.dressgoat-party{animation:code-dance .7s ease-in-out infinite}
.dressgoat-pip{position:absolute;z-index:4;transform-origin:50% 100%;touch-action:none}
.dressgoat-pip>img:first-child{width:100%;height:100%;display:block;pointer-events:none}
.dressgoat-on{position:absolute;translate:-50% -50%;rotate:var(--r,0deg);pointer-events:none;z-index:2;filter:drop-shadow(0 3px 2px rgba(40,30,20,.2))}
.dressgoat-on.dressgoat-pop{animation:dressgoat-popk .45s cubic-bezier(.2,1.6,.4,1)}
.dressgoat-ear{position:absolute;left:2%;top:3%;z-index:6;background:#FFFDF6;border:4px solid #E3CFA6;border-radius:24px;box-shadow:0 6px 0 rgba(150,110,60,.22);padding:10px 16px;display:flex;align-items:center;gap:14px;touch-action:none}
.dressgoat-ear img{height:74px;pointer-events:none}
.dressgoat-ear.dressgoat-pop{animation:gw-pop .5s cubic-bezier(.2,1.5,.4,1)}
.dressgoat-ticks{display:flex;gap:10px}
.dressgoat-ticks i{width:44px;height:44px;border-radius:50%;border:4px solid #E3CFA6;background:#FFF;display:grid;place-items:center;transition:background .2s,border-color .2s}
.dressgoat-ticks i.on{background:#7DC57F;border-color:#3E9B4F}
.dressgoat-ticks i.on::after{content:'';width:18px;height:9px;border-left:5px solid #fff;border-bottom:5px solid #fff;rotate:-45deg;margin-top:-5px}
.dressgoat-raft{position:absolute;z-index:1;border-radius:26px;border:5px solid #8A5A30;box-shadow:0 10px 16px rgba(20,40,60,.25);
  background:repeating-linear-gradient(90deg,rgba(0,0,0,0) 0 92px,rgba(90,50,22,.45) 92px 96px),repeating-linear-gradient(3deg,rgba(110,60,25,0) 0 7px,rgba(110,60,25,.12) 8px 9px,rgba(110,60,25,0) 10px 16px),linear-gradient(#D9A86E,#C08A52 60%,#A97540)}
.dressgoat-item{position:absolute;left:0;top:0;z-index:7;touch-action:none;cursor:grab;filter:drop-shadow(0 6px 4px rgba(40,30,20,.3));will-change:transform}
.dressgoat-item.drag{z-index:20;filter:drop-shadow(0 16px 10px rgba(40,30,20,.35))}
.dressgoat-item.glide{transition:transform .42s cubic-bezier(.3,1.3,.5,1)}
.dressgoat-item.hide{opacity:0;pointer-events:none}
.dressgoat-item.glow{filter:drop-shadow(0 0 12px rgba(255,214,90,1)) drop-shadow(0 0 4px rgba(255,214,90,1))}
.dressgoat-item.dressgoat-wig{animation:code-wigk .5s}
@keyframes dressgoat-popk{0%{scale:.3}100%{scale:1}}
@keyframes dressgoat-showk{0%,100%{rotate:0deg;translate:0 0}20%{rotate:-6deg;translate:0 -24px}40%{rotate:6deg;translate:0 0}60%{rotate:-4deg;translate:0 -16px}80%{rotate:3deg}}
.guesswho-pip.guesswho-fly{z-index:9;transition:translate .9s cubic-bezier(.4,0,.3,1)}
/* plank, round 2: the river, the big splash, the wobbly plank, Gus */
.plank-river{position:absolute;z-index:1;pointer-events:none;overflow:visible}
.plank-ripples{animation:plank-ripk 3s ease-in-out infinite}
@keyframes plank-ripk{0%,100%{transform:translateX(0)}50%{transform:translateX(14px)}}
.plank-far.plank-f-fish{z-index:2}
.plank-far.gone{opacity:0;transition:opacity .4s}
.plank-pip.under{opacity:0;transition:opacity .15s}
.plank-pip.wet::after{content:'';position:absolute;left:10%;right:10%;top:20%;bottom:0;pointer-events:none;background:radial-gradient(circle at 20% 30%,rgba(120,190,235,.9) 0 4px,transparent 5px),radial-gradient(circle at 70% 20%,rgba(120,190,235,.9) 0 5px,transparent 6px),radial-gradient(circle at 45% 60%,rgba(120,190,235,.85) 0 4px,transparent 5px),radial-gradient(circle at 85% 70%,rgba(120,190,235,.85) 0 4px,transparent 5px),radial-gradient(circle at 15% 80%,rgba(120,190,235,.85) 0 3px,transparent 4px);animation:plank-drip .8s linear infinite}
@keyframes plank-drip{from{transform:translateY(-6px);opacity:1}to{transform:translateY(16px);opacity:.3}}
.plank-pip.onchest img{scale:1.35;transform-origin:50% 100%}
.plank-splash{position:absolute;width:220px;height:170px;z-index:3;pointer-events:none}
.plank-splash b{position:absolute;left:50%;bottom:0;width:200px;height:40px;margin-left:-100px;border-radius:50%;border:6px solid rgba(255,255,255,.95);animation:plank-ringk 1.2s ease-out forwards}
.plank-splash i{position:absolute;left:50%;bottom:12px;width:26px;height:42px;margin-left:-13px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:linear-gradient(#FFFFFF,#9FD3EE);transform-origin:50% 100%;animation:plank-dropk 1s ease-out forwards}
.plank-splash i:nth-child(1){--a:-60deg}.plank-splash i:nth-child(2){--a:-38deg}.plank-splash i:nth-child(3){--a:-16deg}.plank-splash i:nth-child(4){--a:0deg;height:60px}.plank-splash i:nth-child(5){--a:16deg}.plank-splash i:nth-child(6){--a:38deg}.plank-splash i:nth-child(7){--a:60deg}
@keyframes plank-dropk{0%{transform:rotate(var(--a)) translateY(0) scale(.3);opacity:1}60%{transform:rotate(var(--a)) translateY(-110px) scale(1);opacity:1}100%{transform:rotate(var(--a)) translateY(-60px) scale(.6);opacity:0}}
@keyframes plank-ringk{0%{transform:scale(.2);opacity:1}100%{transform:scale(1.3);opacity:0}}
.plank-slot.wobbly{border-color:#F4B73E;border-style:solid;background:rgba(255,240,190,.35);animation:plank-wobslot 1.6s ease-in-out infinite}
.plank-slot.wobbly::before{content:'';position:absolute;inset:-11px;border-radius:18px;padding:7px;background:conic-gradient(#3E9B4F calc(var(--h,0) * 360deg),rgba(255,255,255,.55) 0);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);pointer-events:none}
.plank-slot.plank-wobble{animation:code-wigk .5s ease-in-out}
.plank-slot.plank-steady{animation:code-read .5s ease-out}
@keyframes plank-wobslot{0%,100%{rotate:-4deg}50%{rotate:4deg}}
.plank-gus{position:absolute;z-index:7;transform-origin:50% 100%;touch-action:none;animation:plank-gusin .5s cubic-bezier(.2,1.5,.4,1),plank-tugk .5s .5s ease-in-out infinite}
.plank-gus.run{animation:plank-gusrun .9s ease-in forwards}
@keyframes plank-gusin{from{translate:200px 0;opacity:0}to{translate:0 0;opacity:1}}
@keyframes plank-tugk{0%,100%{rotate:4deg}50%{rotate:12deg}}
.plank-tug{position:absolute;left:0;top:0;z-index:5;pointer-events:none}
@keyframes plank-gusrun{to{translate:300px 0;opacity:0}}
.rhyme-card.gone,.rhyme-hook.gone{opacity:0;transition:opacity .4s;pointer-events:none}
.rhyme-jumper{z-index:8}
.rhyme-fish.togus{z-index:9}
/* swap, round 2 */
.swap-box.target{border-color:#B58BE0;border-style:dashed;background:#F6EEFF;animation:swap-target 1.4s ease-in-out infinite}
@keyframes swap-target{50%{box-shadow:0 0 0 7px rgba(181,139,224,.45),0 6px 0 rgba(150,110,60,.25)}}
.swap-think.gone{opacity:0;transition:opacity .4s}
.swap-wand{position:absolute;width:120px;height:120px;z-index:12;pointer-events:none;transition:translate .5s cubic-bezier(.4,0,.3,1);filter:drop-shadow(0 4px 4px rgba(60,40,20,.25))}
.swap-wand.wave{animation:swap-wavek .25s ease-in-out 3;transform-origin:15% 85%}
@keyframes swap-wavek{0%,100%{rotate:0deg}50%{rotate:-28deg}}
.swap-pic.out-hut>img{animation:swap-o-hut .8s ease-in forwards}
@keyframes swap-o-hut{40%{scale:1.35 .7}100%{scale:1.6 2;opacity:0}}
.swap-pic.out-fox>img{animation:swap-o-fox .8s ease-in forwards}
@keyframes swap-o-fox{0%{translate:0 0}25%{translate:0 -14px}50%{translate:0 0;rotate:-10deg}100%{translate:420px 0;opacity:0}}
.swap-pic.out-pan>img{animation:swap-o-pan .8s ease-in forwards}
@keyframes swap-o-pan{to{rotate:720deg;scale:.1;opacity:0}}
.swap-pic.out-cat>img{animation:swap-o-cat .8s ease-in forwards}
@keyframes swap-o-cat{to{translate:0 -300px;rotate:-40deg;opacity:0}}
.swap-pic.out-mug>img{animation:swap-o-mug .8s ease-in forwards}
@keyframes swap-o-mug{40%{translate:-40px 20px}100%{translate:0 60px;scale:.1;opacity:0}}
.swap-pic.out-mop>img{animation:swap-o-mop .8s ease-in forwards}
@keyframes swap-o-mop{to{scale:.05 1;opacity:0}}
.swap-pic.swap-fox>img{animation:swap-i-fox .9s ease-out}
@keyframes swap-i-fox{0%{translate:-420px 0;opacity:0}60%{translate:20px -10px;opacity:1}100%{translate:0 0}}
.swap-pic.swap-cat>img{animation:swap-i-cat .8s cubic-bezier(.2,1.6,.4,1)}
@keyframes swap-i-cat{0%{translate:0 140px;scale:.3}100%{translate:0 0;scale:1}}
.swap-pic.swap-hut>img{animation:swap-ink .7s cubic-bezier(.2,1.6,.4,1)}
.swap-pic.swap-pan>img{animation:swap-ink .5s cubic-bezier(.2,1.6,.4,1),swap-ring .12s .5s linear 6}
.swap-pic.swap-mug>img{animation:swap-ink .6s cubic-bezier(.2,1.6,.4,1)}
.swap-pic.swap-mop>img{animation:swap-i-mop .7s ease-out,swap-sweepk .5s .7s ease-in-out 3;transform-origin:50% 0}
@keyframes swap-i-mop{from{scale:.05 1}to{scale:1 1}}
.code-ten{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle,#FFF3D6 55%,transparent 56%)}
.guesswho-thief{position:relative;width:200px;height:190px;display:grid;place-items:center}
.guesswho-thief>img:first-child{max-width:190px;max-height:185px;object-fit:contain;animation:gw-win 1s ease-in-out infinite}
.guesswho-tprize{position:absolute;right:-6px;top:-6px;width:74px;animation:gw-prize .8s cubic-bezier(.2,1.5,.4,1) both,gw-shine 1.2s .8s ease-in-out infinite}
.swap-pic.gone{opacity:0;transition:opacity .4s}
.swap-big{position:absolute;left:50%;top:46%;translate:-50% -50%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:6px;background:rgba(255,253,246,.92);border:5px solid #E3CFA6;border-radius:34px;padding:18px 44px 22px;box-shadow:0 8px 0 rgba(150,110,60,.2);transition:opacity .4s}
.swap-big:empty{display:none}
.swap-big img{height:190px;max-width:260px;object-fit:contain}
.swap-big.swap-in{animation:swap-ink .45s cubic-bezier(.2,1.6,.4,1)}
.swap-big.gone{opacity:0}
