c=document.getElementById('c');c.width=1200,c.height=900;function r(l,h){return Math.floor(Math.random()*(h-l)+l)}function dr(d){return d*(Math.PI/180)}function f(r,g,b){k.fillStyle='rgba('+r+','+g+','+b+',1)'}s='♣♦♥♠'.split('');z='A,2,3,4,5,6,7,8,9,10,J,Q,K'.split(',');function cr(c,x,y){f(255,255,255);var w=180,h=240,r=10;with(k){beginPath();moveTo(x,y+r);l(x,y+h-r);arc(x+r,y+h-r,r,0,dr(90),1);l(x+w-r,y+h);arc(x+w-r,y+h-r,r,dr(180),dr(360),1);l(x+w,y+r);arc(x+w-r,y+r,r,dr(180),dr(270),1);l(x+r,y);arc(x+r,y+r,r,dr(270),0,1);stroke();closePath();fill();}if(c[0]==s[0]||c[0]==s[3]){f(10,10,10);}else{f(255,0,0);}k.font='60pt Verdana';k.fillText(c[1]+c[0],x+10,y+80)}function dC(){k.save();k.rotate(dr(r(0,360)));cr([s[r(0,3)],z[r(0,12)]],r(0,cw),r(0,ch));k.restore()}k=c.getContext('2d');k.l=k.lineTo;cw=c.offsetWidth;ch=c.offsetHeight;k.clearRect(0,0,cw,ch);f(16,128,0);k.beginPath();k.rect(0,0,cw,ch);k.stroke();k.closePath();k.fill();setInterval(dC,25);
Yz1kb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnYycpO2Mud2lkdGg9MTIwMCxjLmhlaWdodD05MDA7ZnVuY3Rpb24gcihsLGgpe3JldHVybiBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkqKGgtbCkrbCl9ZnVuY3Rpb24gZHIoZCl7cmV0dXJuIGQqKE1hdGguUEkvMTgwKX1mdW5jdGlvbiBmKHIsZyxiKXtrLmZpbGxTdHlsZT0ncmdiYSgnK3IrJywnK2crJywnK2IrJywxKSd9cz0n4pmj4pmm4pml4pmgJy5zcGxpdCgnJyk7ej0nQSwyLDMsNCw1LDYsNyw4LDksMTAsSixRLEsnLnNwbGl0KCcsJyk7ZnVuY3Rpb24gY3IoYyx4LHkpe2YoMjU1LDI1N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