/* 1.3.13: launch animations (launch-fx.js). Only transform/opacity are animated. */
.h2-launch.lfx-on .h2-lIcon,.h2-launch.lfx-on .h2-lRing,.h2-launch.lfx-on .h2-lGlow{display:none}
.h2-launch.lfx-on .h2-lName{margin-top:14px}
.lfx{position:relative;width:260px;height:220px;flex:none;pointer-events:none}
.lfx>*,.lfx-board,.lfx-cyl{position:absolute;left:50%;top:50%}
@media (prefers-reduced-motion:reduce){.lfx *,.lfx-intro *{animation-duration:.01ms!important;animation-delay:0s!important}}

/* ---- cards ---- */
.lfx-card{width:54px;height:78px;margin:-39px 0 0 -27px;perspective:600px}
.lfx-in{position:absolute;inset:0;transform-style:preserve-3d}
.lfx-back,.lfx-face{position:absolute;inset:0;border-radius:7px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 4px 10px rgba(0,0,0,.28)}
.lfx-back{background:repeating-linear-gradient(45deg,#b4232b 0 5px,#9a1b23 5px 10px);border:3px solid #f7efe0}
.lfx-face{background:#fbf7ee;border:1px solid #d9cfbd;color:#1d1b20;transform:rotateY(180deg);display:grid;place-items:center}
.lfx-face.red{color:#cf2a2a}
.lfx-face i{font-style:normal;font-size:30px;line-height:1}
.lfx-face b{position:absolute;font:700 11px/1 Rubik,sans-serif}.lfx-face .tl{left:5px;top:5px}.lfx-face .br{right:5px;bottom:5px;rotate:180deg}
/* durak: the deck, the trump under it, six cards dealt into a fan and turned face up */
.lfx-deck{width:54px;height:78px;margin:-39px 0 0 -27px;border-radius:7px;background:repeating-linear-gradient(45deg,#b4232b 0 5px,#9a1b23 5px 10px);border:3px solid #f7efe0;
  box-shadow:2px 2px 0 #e8dfcd,4px 4px 0 #d6ccb8,0 8px 14px rgba(0,0,0,.3);transform:translate(0,70px);animation:lfxDeckIn .3s cubic-bezier(.2,1.4,.4,1) both}
.lfx-trump{transform:translate(18px,74px) rotate(90deg);animation:lfxDeckIn .3s cubic-bezier(.2,1.4,.4,1) .05s both}.lfx-trump .lfx-in{transform:rotateY(180deg)}
.lfx-deal{transform:translate(var(--x),var(--y)) rotate(var(--r));animation:lfxDeal .42s cubic-bezier(.2,.9,.3,1.1) calc(.2s + var(--i) * 55ms) both}
.lfx-deal .lfx-in{animation:lfxFlip .3s ease-out calc(.62s + var(--i) * 30ms) both}
@keyframes lfxDeckIn{from{opacity:0;transform:translate(0,140px) scale(.7)}}
@keyframes lfxDeal{from{transform:translate(0,70px) rotate(0);opacity:0}25%{opacity:1}}
@keyframes lfxFlip{from{transform:none}to{transform:rotateY(180deg)}}

/* uno: four cards fly in from the corners, the black +4 slams on top */
.lfx-uno{width:64px;height:92px;margin:-46px 0 0 -32px;border-radius:10px;background:var(--c,#1d1b20);border:4px solid #fff7e8;box-shadow:0 6px 14px rgba(0,0,0,.3);display:grid;place-items:center;
  transform:rotate(var(--tr));animation:lfxUnoIn .38s cubic-bezier(.2,.9,.3,1.15) calc(var(--i) * 70ms) both}
.lfx-uno span{display:grid;place-items:center;width:42px;height:58px;border-radius:50%/40%;background:#fff7e8;color:var(--c,#1d1b20);font:800 24px/1 Rubik,sans-serif;rotate:-14deg}
.lfx-p4{--c:#1d1b20;transform:rotate(-6deg);animation:lfxSlam .32s cubic-bezier(.3,1.6,.5,1) .5s both}
.lfx-p4 span{background:linear-gradient(135deg,#e5352b 0 25%,#f6c21c 25% 50%,#2ea84f 50% 75%,#2f6fd6 75%);color:#fff;text-shadow:0 2px 0 #1d1b20;font-size:26px}
.lfx-shock{width:90px;height:90px;margin:-45px 0 0 -45px;border-radius:50%;border:5px solid rgba(255,255,255,.8);opacity:0;animation:lfxShock .45s ease-out .64s forwards}
@keyframes lfxUnoIn{from{transform:translate(var(--fx),var(--fy)) rotate(var(--r)) scale(.6);opacity:0}}
@keyframes lfxSlam{from{transform:translateY(-40px) rotate(-30deg) scale(2.2);opacity:0}60%{opacity:1}}
@keyframes lfxShock{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(2.6)}}

/* poker: chip stacks drop in, two hole cards turn over */
.lfx-chip{width:46px;height:16px;margin:-8px 0 0 -23px;border-radius:50%;background:radial-gradient(ellipse at 50% 40%,transparent 0 30%,rgba(255,255,255,.85) 31% 38%,transparent 39%),var(--c);
  box-shadow:0 4px 0 color-mix(in srgb,var(--c) 70%,#000),inset 0 0 0 3px rgba(255,255,255,.55);transform:translate(var(--x),var(--y));animation:lfxChip .32s cubic-bezier(.3,1.5,.5,1) var(--d) both}
@keyframes lfxChip{from{transform:translate(var(--x),-150px);opacity:0}50%{opacity:1}}
.lfx-hole{transform:translate(var(--x),-36px) rotate(var(--r));animation:lfxHoleIn .3s ease-out calc(.18s + var(--i) * 80ms) both}
.lfx-hole .lfx-in{animation:lfxFlip .28s ease-out calc(.6s + var(--i) * 60ms) both}
@keyframes lfxHoleIn{from{transform:translate(160px,-120px) rotate(40deg);opacity:0}}

/* blackjack: A + K, then a golden «21» */
.lfx-bj{transform:translate(var(--x),-6px) rotate(var(--r));animation:lfxHoleIn .3s ease-out calc(var(--i) * 120ms) both}
.lfx-bj .lfx-in{animation:lfxFlip .28s ease-out calc(.32s + var(--i) * 120ms) both}
.lfx-21{margin:44px 0 0 -40px;width:80px;text-align:center;font:700 40px/1 Oswald,Rubik,sans-serif;color:#ffd84a;text-shadow:0 3px 0 #7a5a00,0 0 18px rgba(255,210,60,.8);animation:lfxPop .35s cubic-bezier(.3,1.7,.5,1) .62s both}
.lfx-spark{width:6px;height:18px;margin:52px 0 0 -3px;border-radius:3px;background:#ffe27a;transform:rotate(var(--a)) translateY(-10px);opacity:0;animation:lfxSpark .45s ease-out .66s forwards}
@keyframes lfxPop{from{transform:scale(0) rotate(-20deg);opacity:0}}
@keyframes lfxSpark{0%{opacity:1;transform:rotate(var(--a)) translateY(-10px) scaleY(.4)}100%{opacity:0;transform:rotate(var(--a)) translateY(-62px) scaleY(1)}}

/* roulette: the revolver cylinder spins down, the live chamber glints */
.lfx-cyl{width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;background:radial-gradient(circle,#4a4d55 0 18%,#2b2d33 19% 21%,#5b5f68 22% 100%);
  box-shadow:inset 0 0 0 6px #3a3c43,inset 0 0 22px rgba(0,0,0,.6),0 10px 22px rgba(0,0,0,.4);animation:lfxSpin .62s cubic-bezier(.15,.7,.25,1) both}
.lfx-ch{position:absolute;left:50%;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;background:radial-gradient(circle,#0f1013 0 55%,#25272c 56%);transform:rotate(var(--a)) translateY(-44px)}
.lfx-ch.live{background:radial-gradient(circle,#e8c15a 0 30%,#a9781d 31% 52%,#25272c 53%)}
.lfx-pin{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#8a8e98}
.lfx-glint{width:170px;height:170px;margin:-85px 0 0 -85px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 80%,rgba(255,255,255,.55) 86%,transparent 92%);opacity:0;animation:lfxGlint .3s ease-out .5s both}
@keyframes lfxSpin{from{transform:rotate(-900deg) scale(.6);opacity:0}15%{opacity:1}}
@keyframes lfxGlint{0%{opacity:0;transform:rotate(0)}40%{opacity:1}100%{opacity:0;transform:rotate(120deg)}}

/* boards: tiles flip in a wave */
.lfx-board{display:grid;grid-template-columns:repeat(var(--n),var(--cell));width:calc(var(--n) * var(--cell));margin:calc(var(--n) * var(--cell) / -2) 0 0 calc(var(--n) * var(--cell) / -2);
  border-radius:6px;overflow:hidden;box-shadow:0 10px 22px rgba(0,0,0,.35),0 0 0 4px rgba(0,0,0,.18)}
.lfx-tile{display:block;height:var(--cell);background:var(--bg);animation:lfxTile .3s ease-out var(--d) both}
@keyframes lfxTile{from{transform:rotateX(90deg) scale(.6);opacity:0}}
.lfx-piece{margin:-38px 0 0 -26px;width:52px;text-align:center;font-size:56px;line-height:1;color:#1d1b20;text-shadow:0 0 0 #000,0 6px 8px rgba(0,0,0,.35);
  transform:translate(var(--x,0px),var(--y,0px));animation:lfxDrop .4s cubic-bezier(.3,1.5,.5,1) .5s both}
.lfx-wq{font-size:34px;margin:-20px 0 0 -26px;color:#fff;text-shadow:0 0 2px #1d1b20,0 0 2px #1d1b20,0 4px 6px rgba(0,0,0,.35);animation-delay:.62s}
@keyframes lfxDrop{from{transform:translate(var(--x,0px),calc(var(--y,0px) - 110px)) scale(1.3);opacity:0}55%{opacity:1}}
.lfx-man{width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff7ea,#d8c8ad);box-shadow:0 3px 0 #a99577,0 4px 6px rgba(0,0,0,.3);
  transform:translate(var(--x),var(--y));animation:lfxManIn .26s cubic-bezier(.3,1.6,.5,1) var(--d) both}
.lfx-man.dark{background:radial-gradient(circle at 40% 35%,#d0473f,#8e1f1a);box-shadow:0 3px 0 #5a120f,0 4px 6px rgba(0,0,0,.3)}
.lfx-crown{background:radial-gradient(circle at 40% 35%,#d0473f,#8e1f1a);box-shadow:0 3px 0 #5a120f,0 0 14px rgba(255,210,60,.9);--d:.72s}
.lfx-crown::after{content:'♛';position:absolute;inset:0;display:grid;place-items:center;font-size:14px;color:#ffd84a}
@keyframes lfxManIn{from{transform:translate(var(--x),calc(var(--y) - 60px)) scale(1.4);opacity:0}}
.lfx-corner{width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:4px;background:rgba(60,30,10,.45);transform:translate(var(--x),var(--y));animation:lfxFade .2s ease-out .25s both}
.lfx-att{width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:#2a2026;box-shadow:0 2px 0 #000;transform:translate(var(--x),var(--y));animation:lfxAtt .3s ease-out var(--d) both}
@keyframes lfxAtt{from{transform:translate(calc(var(--x) + var(--fx)),calc(var(--y) + var(--fy)));opacity:0}}
.lfx-king{margin:-26px 0 0 -22px;width:44px;text-align:center;font-size:44px;line-height:1;color:#ffd84a;text-shadow:0 0 2px #5a3a00,0 0 2px #5a3a00,0 0 18px rgba(255,210,60,.9);animation:lfxRise .45s cubic-bezier(.3,1.5,.5,1) .48s both}
@keyframes lfxRise{from{transform:translateY(30px) scale(.2);opacity:0}}
@keyframes lfxFade{from{opacity:0}}

/* bezier: land tiles fall and click into a map, the river draws through */
.lfx-hex{width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:6px;background:var(--c);box-shadow:inset 0 0 0 2px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.25);
  transform:translate(var(--x),var(--y));animation:lfxTileFall .34s cubic-bezier(.3,1.4,.5,1) var(--d) both}
.lfx-hex.city{background:linear-gradient(160deg,#d9b67a,#b48a4f);box-shadow:inset 0 -14px 0 #8f2f22,inset 0 0 0 2px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.25)}
.lfx-hex.road-h{background:linear-gradient(transparent 44%,#efe3c4 44% 56%,transparent 56%),var(--c)}
.lfx-hex.road-v{background:linear-gradient(90deg,transparent 44%,#efe3c4 44% 56%,transparent 56%),var(--c)}
@keyframes lfxTileFall{from{transform:translate(var(--x),calc(var(--y) - 140px)) rotate(var(--r)) scale(1.2);opacity:0}}
.lfx-river{width:168px;height:168px;margin:-84px 0 0 -84px;overflow:visible}
.lfx-river path{fill:none;stroke:#3d8be0;stroke-width:9;stroke-linecap:round;stroke-dasharray:240;stroke-dashoffset:240;animation:lfxDraw .35s ease-out .58s forwards}
@keyframes lfxDraw{to{stroke-dashoffset:0}}

/* bomber: a brick wall builds, the fuse burns, everything flies */
.lfx-brick{width:38px;height:20px;margin:-10px 0 0 -19px;border-radius:2px;background:linear-gradient(#c6563c,#a5432e);box-shadow:inset 0 -3px 0 rgba(0,0,0,.2);
  transform:translate(var(--x),var(--y));animation:lfxBrick .22s ease-out var(--d) both, lfxBlow .5s cubic-bezier(.2,.6,.4,1) .7s forwards}
@keyframes lfxBrick{from{transform:translate(var(--x),calc(var(--y) - 60px));opacity:0}}
@keyframes lfxBlow{to{transform:translate(var(--bx),var(--by)) rotate(var(--br));opacity:0}}
.lfx-dyn{width:26px;height:58px;margin:-128px 0 0 -13px;border-radius:5px;background:linear-gradient(90deg,#b31d1d,#e2443a,#b31d1d);box-shadow:0 3px 6px rgba(0,0,0,.35);animation:lfxDrop .3s cubic-bezier(.3,1.5,.5,1) .3s both, lfxHide .05s linear .7s forwards}
@keyframes lfxHide{to{opacity:0}}
.lfx-fuse{position:absolute;left:12px;top:-16px;width:2px;height:16px;background:#3a2a1a}
.lfx-fire{position:absolute;left:5px;top:-24px;width:16px;height:16px;border-radius:50%;background:radial-gradient(#fff6a0,#ff9a1a 50%,transparent 70%);animation:lfxFuse .3s linear .4s both}
@keyframes lfxFuse{from{transform:translateY(0) scale(1.2)}to{transform:translateY(18px) scale(.7)}}
.lfx-blast{width:60px;height:60px;margin:-90px 0 0 -30px;border-radius:50%;background:radial-gradient(#fff,#ffe27a 30%,#ff7a1a 55%,transparent 70%);opacity:0;animation:lfxBlast .4s ease-out .68s forwards}
@keyframes lfxBlast{0%{opacity:1;transform:scale(.3)}100%{opacity:0;transform:scale(4)}}

/* farm: the sun comes up, rows of soil, sprouts pop out */
.lfx-sun{width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:radial-gradient(#fff3a6,#ffcc33 60%,#f5a623);box-shadow:0 0 30px rgba(255,200,60,.8);transform:translate(70px,-70px);animation:lfxSun .6s ease-out both}
@keyframes lfxSun{from{transform:translate(110px,30px) scale(.6);opacity:0}}
.lfx-soil{width:230px;height:16px;margin:-8px 0 0 -115px;border-radius:8px;background:repeating-linear-gradient(90deg,#7a5134 0 10px,#6a442a 10px 20px);transform:translateY(var(--y));animation:lfxSoil .25s ease-out var(--d) both}
@keyframes lfxSoil{from{transform:translateY(var(--y)) scaleX(0)}}
.lfx-sprout{width:14px;height:22px;margin:-26px 0 0 -7px;transform:translate(var(--x),var(--y));transform-origin:50% 100%;animation:lfxSprout .3s cubic-bezier(.3,1.7,.5,1) var(--d) both}
.lfx-sprout::before{content:'';position:absolute;left:6px;bottom:0;width:3px;height:16px;border-radius:2px;background:#3d8a2e}
.lfx-sprout::after{content:'';position:absolute;left:0;top:0;width:14px;height:9px;border-radius:0 9px 0 9px;background:#5fb446;box-shadow:inset -3px -2px 0 rgba(0,0,0,.1)}
@keyframes lfxSprout{from{transform:translate(var(--x),var(--y)) scaleY(0)}}

/* minecraft: a grass block assembles from pixels, bits fly off */
.lfx-px{display:grid;grid-template-columns:repeat(var(--n),var(--s));width:calc(var(--n) * var(--s));margin:calc(var(--n) * var(--s) / -2) 0 0 calc(var(--n) * var(--s) / -2);box-shadow:0 12px 20px rgba(0,0,0,.35);image-rendering:pixelated}
.lfx-px i{display:block;height:var(--s);background:var(--c);animation:lfxPx .3s steps(4) var(--d) both}
@keyframes lfxPx{from{transform:translate(var(--fx),var(--fy));opacity:0}}
.lfx-bit{width:9px;height:9px;margin:-4px 0 0 -4px;background:var(--c);opacity:0;transform:rotate(var(--a)) translateY(-60px);animation:lfxBit .4s steps(5) .66s forwards}
@keyframes lfxBit{0%{opacity:1;transform:rotate(var(--a)) translateY(-60px)}100%{opacity:0;transform:rotate(var(--a)) translateY(-130px)}}

/* ================= intro: deck → riffle shuffle → fan → dealt into the hall ================= */
.lfx-intro{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3}
.lfx-ideck{position:absolute;left:195px;top:380px;width:0;height:0;animation:lfxIdeck .45s cubic-bezier(.2,1.4,.4,1) both}
@keyframes lfxIdeck{from{transform:translateY(-260px) rotate(-25deg) scale(.6);opacity:0}}
.lfx-ic{position:absolute;left:-36px;top:-52px;width:72px;height:104px;border-radius:9px;background:
  radial-gradient(circle at 50% 50%,transparent 0 22%,rgba(255,226,140,.9) 23% 25%,transparent 26%),
  repeating-linear-gradient(45deg,#b4232b 0 6px,#9a1b23 6px 12px);border:4px solid #f7efe0;box-shadow:0 2px 3px rgba(0,0,0,.25);
  transform:translateY(var(--lift));transform-origin:50% 140%;
  animation:lfxRiffle 1.1s cubic-bezier(.5,0,.3,1) .45s both, lfxDealOut .55s cubic-bezier(.5,0,.8,.6) calc(1.6s + var(--i) * 25ms) forwards}
/* split into two halves, interleave back, then spread into a fan */
@keyframes lfxRiffle{
  0%{transform:translateY(var(--lift))}
  25%{transform:translate(calc(var(--side) * 62px),calc(var(--lift) - 10px)) rotate(calc(var(--side) * 14deg))}
  45%{transform:translate(calc(var(--side) * 50px),calc(var(--lift) - 30px)) rotate(calc(var(--side) * 22deg))}
  62%{transform:translateY(var(--lift))}
  100%{transform:rotate(var(--fan)) translateY(-14px)}}
@keyframes lfxDealOut{from{transform:rotate(var(--fan)) translateY(-14px);opacity:1}to{transform:translate(var(--tx),var(--ty)) rotate(var(--tr)) scale(.5);opacity:0}}
.lfx-isp{position:absolute;left:195px;top:380px;width:5px;height:22px;margin:-11px 0 0 -2px;border-radius:3px;background:#ffd84a;box-shadow:0 0 8px rgba(255,210,60,.9);opacity:0;
  transform:rotate(var(--a)) translateY(-30px);animation:lfxIsp .55s ease-out calc(1.62s + var(--d)) forwards}
@keyframes lfxIsp{0%{opacity:1;transform:rotate(var(--a)) translateY(-30px) scaleY(.3)}100%{opacity:0;transform:rotate(var(--a)) translateY(-170px) scaleY(1.2)}}
.lfx-imark{position:absolute;left:0;right:0;top:470px;text-align:center;animation:h2markIn .4s var(--ease-out,ease-out) .7s both, h2markOut .3s ease-out 1.65s forwards}
.lfx-imark span{display:inline-block;font:600 15px/1 Oswald,Rubik,sans-serif;letter-spacing:.3em;padding-inline-start:.3em;
  background:linear-gradient(90deg,#b48a2a 0%,#ffe9a0 45%,#b48a2a 55%,#b48a2a 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:lfxShine 1.1s linear .7s both}
@keyframes lfxShine{from{background-position:100% 0}to{background-position:-60% 0}}
