/* ═════════════ 🦹 ladrones nuevos: movimiento, robo, el 7 y el descarte ═════════════ */

/* ---------- partículas al moverse (capa de actores) ---------- */
.rp-spark.green { background: #c8ffd8; box-shadow: 0 0 6px #3aff7a; }
.rp-lasso { width: 58px; height: 22px; margin: -8px -29px; border-radius: 50%; border: 3px dashed #c9a66b; box-shadow: 0 0 0 1px #6b4226 inset;
  animation: rpLasso 1s ease-out forwards; }
@keyframes rpLasso { 0% { transform: scale(1.8) rotate(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scale(.75) rotate(300deg); opacity: 1; } 100% { transform: scale(.6) rotate(360deg); opacity: 0; } }
.rp-tractor { width: 44px; height: 120px; margin: -112px 0 0 -22px; transform-origin: 50% 0;
  background: linear-gradient(rgba(140,255,170,.15), rgba(80,255,130,.65)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  animation: rpTractor 1.1s ease-in-out forwards; }
@keyframes rpTractor { 0% { transform: scaleY(0); opacity: 0; } 30%, 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) scaleX(0); opacity: 0; } }
.rp-ufo { margin: -128px 0 0 -15px; font-size: 28px; line-height: 1; animation: rpUfo 1.2s ease-in-out forwards; filter: drop-shadow(0 0 6px #3aff7a); }
@keyframes rpUfo { 0% { transform: translate(-60px, -30px) scale(.5); opacity: 0; } 25% { transform: translate(0, 0) scale(1); opacity: 1; }
  45% { transform: translate(-3px, 2px) rotate(-6deg); } 65% { transform: translate(3px, -2px) rotate(6deg); opacity: 1; } 100% { transform: translate(70px, -40px) scale(.5); opacity: 0; } }
.rp-flame { width: 10px; height: 14px; margin: -7px -5px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 70%, #fff6b0, #ffb02e 45%, #ff3a00 80%); box-shadow: 0 0 8px #ff7a1a; animation: rpOut .9s ease-out forwards; }
.rp-flash.orange { background: radial-gradient(circle, rgba(255,190,60,.95), rgba(255,60,0,0) 65%); }
.rp-flash.ice { background: radial-gradient(circle, rgba(220,245,255,.95), rgba(120,200,255,0) 65%); }
.rp-conf { width: 5px; height: 8px; margin: -4px -2px; background: #ff5a8a; animation: rpConf 1.1s ease-out forwards; }
.rp-conf:nth-child(4n+1) { background: #ffd34d; } .rp-conf:nth-child(4n+2) { background: #3a8fe0; } .rp-conf:nth-child(4n+3) { background: #3aaa4a; }
@keyframes rpConf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 60% { transform: translate(var(--dx), calc(var(--dy) - 14px)) rotate(400deg); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 16px)) rotate(700deg); opacity: 0; } }
.rp-smokep { width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(circle, rgba(170,110,255,.8), rgba(90,40,180,0) 70%); animation: rpOut 1.1s ease-out forwards; }
.rp-swirl { width: 50px; height: 50px; margin: -40px -25px; border-radius: 50%; border: 4px solid rgba(160,100,255,.85); border-top-color: transparent; border-left-color: transparent;
  box-shadow: 0 0 12px rgba(138,42,208,.6); animation: rpSwirl 1.1s ease-in-out forwards; }
@keyframes rpSwirl { 0% { transform: scale(.2) rotate(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.2) rotate(720deg); opacity: 0; } }
.rp-snow { width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px #aee4ff; animation: rpOut 1.1s ease-out forwards; }
.rp-dirt { width: 7px; height: 6px; margin: -3px; border-radius: 40%; background: #5a3a1a; animation: rpDrop .9s ease-out forwards; }
.rp-tomb { margin: -4px 0 0 18px; font-size: 20px; line-height: 1; animation: rpTomb 1.3s ease-out forwards; }
@keyframes rpTomb { 0% { transform: translateY(16px) scaleY(0); opacity: 0; } 30% { transform: translateY(-14px) scaleY(1); opacity: 1; } 75% { transform: translateY(-14px); opacity: 1; } 100% { transform: translateY(0) scaleY(.2); opacity: 0; } }
.rp-tumble { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: repeating-conic-gradient(#a4814a 0 12deg, transparent 12deg 34deg); border: 2px dashed #8a6a3a; }
.rp-flames b { font-size: 15px; animation: rpTwinkle .25s ease-in-out infinite alternate; }
.rp-balloons b { font-size: 18px; animation: rpSway .4s ease-in-out infinite alternate; }
@keyframes rpSway { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.rp-snowflakes b { font-size: 12px; animation: spin 1s linear infinite; }

/* ---------- robo de una carta ---------- */
.stealcard.skin-bandido { box-shadow: 0 0 16px 3px rgba(227,173,63,.85); }
.stealcard.skin-alien { box-shadow: 0 0 18px 4px rgba(58,255,122,.85); }
.stealcard.skin-dragon { box-shadow: 0 0 20px 5px rgba(255,110,20,.9); }
.stealcard.skin-payaso { box-shadow: 0 0 16px 3px rgba(255,90,138,.85), 0 0 26px 6px rgba(58,143,224,.5); }
.stealcard.skin-genio { box-shadow: 0 0 18px 4px rgba(138,42,208,.9); }
.stealcard.skin-yeti { box-shadow: 0 0 18px 4px rgba(174,228,255,.95); }
.stealcard.skin-zombi { box-shadow: 0 0 16px 3px rgba(138,184,106,.9); }
.stealhand.skin-payaso, .stealhand.skin-alien { animation: rpSway .3s ease-in-out infinite alternate; }
.stealhand.skin-yeti { animation: spin 1.2s linear infinite; }

/* ---------- pantalla del 7 ---------- */
.robberfx.rs-bandido { background: radial-gradient(circle, rgba(140,80,20,.55), rgba(20,8,0,.9)); }
.robberfx.rs-bandido .bolt { fill: #ffd56b; filter: drop-shadow(0 0 18px #e3ad3f); }
.robberfx.rs-alien { background: radial-gradient(circle, rgba(20,120,50,.55), rgba(0,8,4,.9)); }
.robberfx.rs-alien .bolt { fill: #b8ffd0; filter: drop-shadow(0 0 18px #3aff7a); }
.robberfx.rs-dragon { background: radial-gradient(circle, rgba(200,60,0,.6), rgba(25,4,0,.9)); }
.robberfx.rs-dragon .bolt { fill: #ffb02e; filter: drop-shadow(0 0 18px #ff3a00); }
.robberfx.rs-payaso { background: radial-gradient(circle, rgba(160,40,110,.5), rgba(10,10,40,.9)); }
.robberfx.rs-payaso .bolt { fill: #ffd34d; filter: drop-shadow(0 0 18px #ff5a8a); }
.robberfx.rs-genio { background: radial-gradient(circle, rgba(80,40,180,.55), rgba(5,0,25,.9)); }
.robberfx.rs-genio .bolt { fill: #ffe7a8; filter: drop-shadow(0 0 18px #8a2ad0); }
.robberfx.rs-yeti { background: radial-gradient(circle, rgba(120,190,240,.45), rgba(0,10,25,.9)); }
.robberfx.rs-yeti .bolt { fill: #e6f6ff; filter: drop-shadow(0 0 18px #7ab4e0); }
.robberfx.rs-zombi { background: radial-gradient(circle, rgba(60,90,30,.55), rgba(5,8,0,.92)); }
.robberfx.rs-zombi .bolt { fill: #c8f0a0; filter: drop-shadow(0 0 18px #8ab86a); }

/* ---------- 💀 descarte por el 7: cada diseño a su manera ---------- */
/* cartas que se transforman (en murciélago, fuego o globo) */
.flycard.morph { background: none; border-color: transparent; box-shadow: none; }
.flycard.morph::before { content: ''; position: absolute; inset: -2px; border-radius: 8px; border: 2px solid #2a1c0e;
  background: linear-gradient(170deg, #fffaf0 0 30%, var(--rc) 30%); box-shadow: 0 8px 18px rgba(0,0,0,.45); animation: moOut var(--d, 1.1s) forwards; }
.flycard.back.morph::before { background: repeating-linear-gradient(45deg, #5a3517 0 6px, #4a2a10 6px 12px); border-color: #e3ad3f; }
.flycard.morph > svg, .flycard.morph > span { position: relative; animation: moOut var(--d, 1.1s) forwards; }
.flycard .mo { position: absolute; left: 50%; top: 50%; margin: -20px 0 0 -20px; width: 40px; text-align: center; font-size: 34px; line-height: 40px; font-style: normal;
  opacity: 0; animation: moIn var(--d, 1.1s) forwards; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
@keyframes moOut { 0%, 38% { opacity: 1; transform: scale(1); } 55%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes moIn { 0%, 40% { opacity: 0; transform: scale(.3); } 58% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
/* cartas teñidas (fantasma, quemada, congelada, humo) */
.flycard[class*=" t-"]::after { content: ''; position: absolute; inset: 0; border-radius: 6px; opacity: 0; animation: tintIn var(--d, 1.1s) forwards; }
.flycard.morph[class*=" t-"]::after { animation-name: tintMorph; }
@keyframes tintIn { 0%, 10% { opacity: 0; } 45%, 100% { opacity: 1; } }
@keyframes tintMorph { 0%, 10% { opacity: 0; } 35% { opacity: 1; } 55%, 100% { opacity: 0; } }
.flycard.t-ghost { box-shadow: 0 0 18px rgba(120,255,160,.8); }
.flycard.t-ghost::after { background: linear-gradient(rgba(220,255,230,.75), rgba(120,255,160,.55)); }
.flycard.t-burn::after { background: radial-gradient(circle at 50% 110%, rgba(255,230,120,.95), rgba(255,90,0,.85) 45%, rgba(40,10,0,.8) 80%); }
.flycard.t-ice { box-shadow: 0 0 16px rgba(174,228,255,.95); }
.flycard.t-ice::after { background: linear-gradient(135deg, rgba(230,248,255,.85), rgba(140,205,255,.6) 50%, rgba(255,255,255,.85) 52%, rgba(140,205,255,.55));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.flycard.t-smoke::after { background: radial-gradient(circle, rgba(190,140,255,.75), rgba(90,40,180,.85)); }

/* recipientes (cofre, caldero, tacho, saco, imán, lámpara, tumba, platillo) */
.dcatch { position: fixed; z-index: 61; width: 0; height: 0; pointer-events: none; }
.dcatch .dc-in { position: absolute; left: -24px; top: -26px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 38px; line-height: 1;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); animation: dcIn .35s cubic-bezier(.3,1.6,.5,1) both; }
.dcatch.svg .dc-in { left: -32px; top: -30px; width: 64px; height: 54px; }
.dcatch.svg svg { width: 100%; height: 100%; overflow: visible; }
.dcatch.hit .dc-in { animation: dcHit .22s ease-out; }
.dcatch.shut .dc-in { animation: dcOut .55s .35s ease-in forwards; }
@keyframes dcIn { from { transform: scale(0) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dcHit { 40% { transform: scale(1.18, .86); } 100% { transform: none; } }
@keyframes dcOut { 0% { transform: none; opacity: 1; } 30% { transform: scale(1.15); } 100% { transform: scale(0) translateY(10px); opacity: 0; } }
.dc-chest .lid { transform-box: fill-box; transform-origin: 0 100%; transform: rotate(-38deg); transition: transform .25s; }
.dc-chest.shut .lid { transform: none; }
.dc-chest .cg { animation: xlight .6s ease-in-out infinite; }
.dc-cauldron .brew { animation: brew .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes brew { to { transform: scaleY(1.6); fill: #a6ff6d; } }
.dc-magnet .dc-in { transform-origin: 50% 50%; rotate: -45deg; }
.dc-magnet .dc-in::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(58,215,255,.7); animation: rpRing .7s ease-out infinite; }
.dc-ufo .dc-in { font-size: 44px; animation: dcIn .35s both, ufoHover .8s .35s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px #3aff7a); }
@keyframes ufoHover { to { translate: 0 -5px; } }
.dc-grave .dc-in { animation: graveIn .45s ease-out both; }
@keyframes graveIn { from { transform: translateY(26px) scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.dc-trash.hit .dc-in, .dc-sack.hit .dc-in { animation: dcShake .25s ease-out; }
@keyframes dcShake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
.dbeam { position: fixed; z-index: 60; width: 54px; margin-left: -27px; transform: translateY(-100%); pointer-events: none;
  background: linear-gradient(rgba(80,255,130,.65), rgba(140,255,170,.15)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); animation: fadeIn .3s; }
.dbubbles { position: fixed; z-index: 62; width: 0; height: 0; pointer-events: none; }
.dbubbles i { position: absolute; left: -4px; top: 0; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #b6ff8a; background: rgba(166,255,109,.35);
  animation: bubble 1s ease-in infinite; }
.dbubbles i:nth-child(2) { left: -14px; animation-delay: .2s; } .dbubbles i:nth-child(3) { left: 8px; animation-delay: .45s; }
.dbubbles i:nth-child(4) { left: -6px; animation-delay: .65s; } .dbubbles i:nth-child(5) { left: 12px; animation-delay: .8s; width: 6px; height: 6px; }
@keyframes bubble { from { transform: translateY(0) scale(.5); opacity: 1; } to { transform: translateY(-34px) scale(1.2); opacity: 0; } }
/* chispas por cada carta que llega */
.dpop { position: fixed; z-index: 63; width: 0; height: 0; pointer-events: none; }
.dpop b { position: absolute; left: -9px; top: -9px; font-size: 17px; line-height: 1; animation: rpOut .85s ease-out forwards; }
/* tajo del ninja */
.dslash { position: fixed; z-index: 63; width: 0; height: 0; pointer-events: none; }
.dslash i { position: absolute; left: -70px; top: -3px; width: 140px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff 40%, #ff4d4d 60%, transparent);
  box-shadow: 0 0 12px #fff; transform: rotate(-30deg) scaleX(0); animation: slashIn .45s ease-out forwards; }
.dslash i.s2 { transform: rotate(30deg) scaleX(0); animation-name: slashIn2; animation-delay: .12s; }
@keyframes slashIn { 40% { transform: rotate(-30deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-30deg) scaleX(1.1); opacity: 0; } }
@keyframes slashIn2 { 40% { transform: rotate(30deg) scaleX(1); opacity: 1; } 100% { transform: rotate(30deg) scaleX(1.1); opacity: 0; } }
/* confeti del payaso */
.dconf { position: fixed; z-index: 63; width: 0; height: 0; pointer-events: none; }
.dconf i { position: absolute; left: -3px; top: -4px; width: 6px; height: 9px; background: #ff5a8a; animation: dConf 1.2s ease-out forwards; }
.dconf i:nth-child(4n+1) { background: #ffd34d; } .dconf i:nth-child(4n+2) { background: #3a8fe0; } .dconf i:nth-child(4n+3) { background: #3aaa4a; }
@keyframes dConf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 55% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(calc(var(--r) * 1.5)); opacity: 0; } }
/* final: anillos con los colores del diseño */
.gulp .gulp-ring { border-color: var(--c1, #b06bff); box-shadow: 0 0 18px var(--c1, #b06bff); }
.gulp .gulp-ring.r2 { border-color: var(--c2, #ff5a4a); box-shadow: 0 0 18px var(--c2, #ff5a4a); }
.gulp .gulp-txt { text-align: center; text-shadow: 0 2px 0 #2a0505, 0 0 12px var(--c1, #ff3b2e); }
.gulp .gulp-txt small { display: block; font: 900 12px/1.1 'Nunito', sans-serif; letter-spacing: .3px; color: #fff; }
.gulp.digital .gulp-txt { font-family: ui-monospace, 'Courier New', monospace; color: #aef2ff; letter-spacing: 2px; }

@media (max-width: 760px) {
  .dcatch .dc-in { font-size: 30px; }
  .dcatch.svg .dc-in { left: -26px; top: -24px; width: 52px; height: 44px; }
  .dc-ufo .dc-in { font-size: 34px; }
  .flycard .mo { font-size: 28px; }
  .dslash i { width: 100px; left: -50px; }
  .gulp .gulp-txt small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dcatch .dc-in, .dbubbles i, .dslash i, .dconf i, .dpop b, .rp-tumble, .rp-flames b, .rp-balloons b, .rp-snowflakes b { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* el ladrón se transforma en el diseño del que sacó 7 */
.robber.morphing .robber-bob { animation: robMorph .8s cubic-bezier(.3,1.6,.5,1); }
@keyframes robMorph { 0% { transform: scale(.2) rotate(-20deg); opacity: .2; } 60% { transform: scale(1.25) rotate(6deg); opacity: 1; } 100% { transform: none; } }
