/* ===== Mobile App card: cinematic assemble — the app's layers float apart in 3D (blueprint glow),
   fly together into the phone, take the brand colour under a light sweep and go live on iOS/Android.
   Gamification card: the phone screen cycles quickly through mini-games drawn on a canvas. ===== */

/* ---------- Mobile App: puzzle assemble ---------- */
/* card: black with deep-blue light */
body .ap-feat-card.ap-g124d.ap-g124a{background:
  radial-gradient(70% 45% at 50% 78%,#0a4bd955 0%,#0a4bd900 70%),
  radial-gradient(60% 40% at 100% 0%,#0071e340 0%,#0071e300 70%),
  radial-gradient(50% 35% at 0% 55%,#3a5bff26 0%,#3a5bff00 70%),
  linear-gradient(170deg,#060a14 0%,#03050b 60%,#020308 100%)}
body .ap-feat-card.ap-g124d.ap-g124a::before{background-image:linear-gradient(rgba(100,168,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(100,168,255,.06) 1px,transparent 1px)}

.asm{position:relative;width:100%;height:520px;color:#fff;--ac:#2a2f3a}
.asm.a-col{--ac:#0071e3}
.asm-steps{position:absolute;left:0;right:0;top:0;display:flex;justify-content:center;gap:6px;z-index:5}
.asm-s{display:flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 5px;border-radius:14px;background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(100,168,255,.22);color:rgba(235,235,245,.72);font-size:12px;font-weight:600;white-space:nowrap;
  transition:background .4s ease,color .4s ease,box-shadow .4s ease}
.asm-s i{width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:12px;font-weight:700;font-style:normal;color:#fff}
.asm-s em{font-style:normal}
.asm-s.is-on{background:#0071e3;color:#fff;box-shadow:0 6px 18px -6px #0071e3}
.asm-s.is-on i{background:rgba(255,255,255,.28)}
.asm-s.is-done{color:#fff}

.asm-stage{position:absolute;left:0;right:0;top:50px;height:466px;perspective:1400px}
.asm-cam{position:absolute;left:50%;top:6px;width:220px;height:450px;margin-left:-110px;transform-style:preserve-3d;animation:asmCam 9s ease-in-out infinite alternate}
@keyframes asmCam{from{transform:rotateY(-6deg) rotateX(2deg)}to{transform:rotateY(6deg) rotateX(-1deg)}}
.asm-rig{position:absolute;inset:0;transform-style:preserve-3d}

.asm-fix{position:absolute}
.asm-body{left:0;top:0;width:220px;height:450px;border-radius:44px;
  background:linear-gradient(145deg,#4a4f5a 0%,#1c1f26 28%,#0b0d12 52%,#3a3f4a 78%,#16181e 100%);
  box-shadow:0 40px 80px -30px #000,0 0 0 1px rgba(100,168,255,.18),inset 0 0 0 1px rgba(255,255,255,.2),0 0 60px -10px #0071e355}
.asm-scr{left:6px;top:6px;width:208px;height:438px;border-radius:38px;background:#05070c;box-shadow:inset 0 0 0 3px #000;overflow:hidden}
.asm-scr::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(100,168,255,.14) 1px,transparent 1.4px);background-size:14px 14px;transition:opacity .8s ease}
.asm.a-col .asm-scr::before{opacity:.2}
.asm-isl{position:absolute;left:50%;top:11px;width:62px;height:18px;margin-left:-31px;border-radius:10px;background:#000;z-index:2}
.asm-home{position:absolute;left:50%;bottom:8px;width:78px;height:4px;margin-left:-39px;border-radius:3px;background:rgba(255,255,255,.5)}

/* every UI element glides in from its own direction (gentle 3D) and settles without overshoot.
   No blur filter and no landing flash: both made the elements flicker. */
.asm-ly{position:absolute;z-index:3;opacity:0;transform:var(--from);will-change:transform,opacity;-webkit-backface-visibility:hidden;backface-visibility:hidden;
  transition:transform 1.25s cubic-bezier(.16,1,.3,1),opacity .8s cubic-bezier(.4,0,.2,1),background .8s ease,box-shadow .8s ease}
.asm-ly.in{opacity:1;transform:none}
/* end of the loop: everything fades out in place, then resets invisibly */
.asm.a-out .asm-ly,.asm.a-out .asm-badge{opacity:0;transition:opacity .7s ease}
.asm.a-hold .asm-ly,.asm.a-hold .asm-badge,.asm.a-hold .asm-ly *{transition:none!important;animation:none!important}

/* header */
.asm-hd{left:16px;top:38px;width:180px;height:34px;display:flex;align-items:center;gap:8px;border-radius:12px;
  --from:translate3d(0,-56px,40px) rotateX(32deg)}
.asm-hd b{font-size:13.5px;font-weight:700;letter-spacing:-.01em}
.asm-lg{width:30px;height:30px;border-radius:9px;background:var(--ac);display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:800;letter-spacing:-.04em;transition:background .7s ease}
.asm-av{margin-left:auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:9.5px;font-weight:700;
  background:linear-gradient(135deg,#ffb36b,#ff5e7e);box-shadow:0 0 0 2px #05070c,0 0 0 3.5px rgba(255,255,255,.25)}

/* hero image card */
.asm-hero{left:14px;top:80px;width:184px;height:96px;border-radius:18px;overflow:hidden;
  background:radial-gradient(120% 120% at 100% 0%,#ffb36b 0%,#e0702f 38%,#7a2f12 75%,#3a1609 100%);
  box-shadow:0 18px 30px -16px #000;--from:translate3d(-90px,-16px,60px) rotateY(-26deg) scale(1.06)}
.asm-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(80% 90% at 0% 100%,rgba(0,0,0,.55),transparent 70%);pointer-events:none}
.asm-hero-tx{position:absolute;left:12px;bottom:10px;z-index:1;display:flex;flex-direction:column;gap:1px}
.asm-hero-tx small{font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.8)}
.asm-hero-tx b{font-size:14px;font-weight:700;letter-spacing:-.02em}
.asm-hero-tx em{align-self:flex-start;margin-top:4px;padding:2px 7px;border-radius:999px;font-style:normal;font-size:10px;font-weight:700;background:#fff;color:#c2410c}
.asm-latte{position:absolute;right:-14px;top:-6px;width:112px;height:112px;transform:rotate(-12deg);transition:transform 1.4s cubic-bezier(.2,.9,.3,1)}
.asm-hero.in .asm-latte{animation:asmSpin 1.2s cubic-bezier(.2,.9,.3,1) .3s both}
@keyframes asmSpin{from{transform:rotate(-120deg) scale(.7)}to{transform:rotate(-12deg) scale(1)}}
.asm-shine{position:absolute;top:-30%;bottom:-30%;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transform:translateX(-200%) skewX(-18deg);z-index:2}
.asm-hero.in .asm-shine{animation:asmShine 1s ease .55s both}
@keyframes asmShine{to{transform:translateX(420%) skewX(-18deg)}}

/* loyalty card */
.asm-loy{left:14px;top:184px;width:184px;height:62px;border-radius:16px;display:flex;align-items:center;padding:0 12px 0 14px;
  background:linear-gradient(135deg,var(--ac),#1c2230);transition:background .8s ease;
  --from:translate3d(90px,0,60px) rotateY(26deg) scale(1.06)}
.asm.a-col .asm-loy{background:linear-gradient(135deg,#1a84f0,#0047b3);box-shadow:0 14px 30px -12px #0071e3}
.asm-loy-tx{display:flex;flex-direction:column}
.asm-loy-tx small{font-size:10px;color:rgba(255,255,255,.75);font-weight:600}
.asm-loy-tx strong{font-size:24px;line-height:1.05;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.asm-loy-tx em{font-style:normal;font-size:10.5px;color:rgba(255,255,255,.8)}
.asm-ringp{margin-left:auto;width:40px;height:40px;transform:rotate(-90deg)}
.asm-ringp circle{fill:none;stroke:rgba(255,255,255,.18);stroke-width:4}
.asm-ringp .asm-ringp-v{stroke:#fff;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset 1.2s cubic-bezier(.3,.7,.2,1) .4s}
.asm-loy.in .asm-ringp-v{stroke-dashoffset:20}
.asm-ringp-n{position:absolute;right:12px;width:40px;text-align:center;font-size:9.5px;font-weight:700}

/* quick action buttons */
.asm-acts{position:absolute;left:14px;top:254px;width:184px;height:46px;display:flex;justify-content:space-between;z-index:3}
.asm-act{position:relative;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#161b26;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);--from:translate3d(0,22px,50px) scale(.5);transition-delay:calc(var(--j)*110ms)}
.asm-act i{display:grid;place-items:center;color:#cfe2ff}
.asm-act i svg{width:18px;height:18px}
.asm.a-col .asm-act:first-child{background:#0071e3;box-shadow:0 8px 18px -8px #0071e3}
.asm.a-col .asm-act:first-child i{color:#fff}

/* map card */
.asm-map{left:14px;top:308px;width:184px;height:62px;border-radius:16px;display:flex;align-items:center;gap:10px;padding:6px;background:#141823;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);--from:translate3d(0,0,110px) scale(1.15)}
.asm-map-g{position:relative;flex:none;width:86px;height:50px;border-radius:11px;overflow:hidden;
  background:linear-gradient(135deg,#1b2a44,#0f1726);box-shadow:inset 0 0 0 1px rgba(100,168,255,.15)}
.asm-map-g::before{content:"";position:absolute;inset:0;background:radial-gradient(40% 50% at 75% 75%,rgba(52,199,89,.25),transparent),radial-gradient(30% 40% at 15% 20%,rgba(100,168,255,.18),transparent)}
.asm-map-g svg{position:absolute;inset:0;width:100%;height:100%}
.asm-road{fill:none;stroke:rgba(255,255,255,.16);stroke-width:5}
.asm-route{fill:none;stroke:#3b8bff;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.asm-map.in .asm-route{transition:stroke-dashoffset 1.1s ease .45s;stroke-dashoffset:0}
.asm-pin{position:absolute;left:70%;top:22%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #0071e3}
.asm-pin::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid #3b8bff;animation:asmPin 1.6s ease-out infinite}
@keyframes asmPin{from{transform:scale(1);opacity:1}to{transform:scale(3);opacity:0}}
.asm-map-tx{display:flex;flex-direction:column;min-width:0}
.asm-map-tx b{font-size:12.5px;font-weight:700}
.asm-map-tx small{font-size:11px;color:rgba(235,235,245,.65)}

/* CTA / publish */
.asm-pub{left:14px;top:380px;width:184px;height:40px;border-radius:14px;--from:translate3d(0,64px,40px) rotateX(-32deg)}
.asm-btn,.asm-ok{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:14px;font-size:13.5px;font-weight:600;transition:opacity .45s ease,transform .25s ease,background .7s ease}
.asm-btn{background:var(--ac);overflow:hidden}
.asm-btn::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);transform:translateX(-150%) skewX(-18deg)}
.asm.a-pub .asm-btn::after{animation:asmShine 1.1s ease both}
.asm.a-press .asm-btn{transform:scale(.94)}
.asm-ok{background:rgba(48,209,88,.16);color:#30d158;box-shadow:inset 0 0 0 1px rgba(48,209,88,.45);opacity:0}
.asm-ok svg{width:15px;height:15px}
.asm.a-live .asm-btn{opacity:0}
.asm.a-live .asm-ok{opacity:1}

.asm-sweep{position:absolute;left:6px;top:6px;width:208px;height:438px;border-radius:38px;overflow:hidden;pointer-events:none;opacity:0;z-index:5;transform:translateZ(2px)}
.asm-sweep i{position:absolute;top:-20%;bottom:-20%;left:0;width:45%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);transform:translateX(-170%) skewX(-18deg)}
.asm.a-col .asm-sweep{opacity:1}
.asm.a-col .asm-sweep i{animation:asmSweep 1.3s cubic-bezier(.5,0,.2,1) forwards}
@keyframes asmSweep{to{transform:translateX(420%) skewX(-18deg)}}

.asm-glow{position:absolute;left:50%;bottom:-10px;width:420px;height:110px;margin-left:-210px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,113,227,.7),rgba(0,113,227,0));opacity:.45;transition:opacity 1s ease}
.asm.a-col .asm-glow{opacity:.8}
.asm.a-live .asm-glow{opacity:1}
.asm-ring{position:absolute;left:50%;top:231px;width:300px;height:300px;margin:-150px 0 0 -150px;border-radius:50%;border:1.5px solid rgba(100,168,255,.7);opacity:0;pointer-events:none}
.asm.a-live .asm-ring{animation:asmRing 1.6s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes asmRing{from{opacity:.9;transform:scale(.55)}to{opacity:0;transform:scale(1.6)}}
.asm-badge{position:absolute;top:150px;z-index:6;display:flex;align-items:center;gap:5px;height:32px;padding:0 11px 0 9px;border-radius:16px;
  background:rgba(10,16,30,.8);box-shadow:inset 0 0 0 1px rgba(100,168,255,.35),0 14px 30px -12px #000,0 0 24px -8px #0071e3;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:12.5px;font-weight:600;white-space:nowrap;
  opacity:0;transition:opacity .5s ease,transform .8s cubic-bezier(.2,.9,.3,1.2)}
.asm-badge i{display:grid;place-items:center}.asm-badge i svg{width:13px;height:13px}
.asm-badge em{display:grid;place-items:center;color:#64a8ff;font-style:normal}.asm-badge em svg{width:13px;height:13px}
.asm-b1{left:calc(50% + 70px);transform:translate3d(-70px,10px,0) scale(.6)}
.asm-b2{top:268px;right:calc(50% + 70px);transform:translate3d(70px,10px,0) scale(.6)}
.asm.a-live .asm-badge{opacity:1;transform:none}
.asm.a-live .asm-b2{transition-delay:.15s}

@media (max-width:420px){
  .asm{height:500px}
  .asm-steps{transform:scale(.88)}
  .asm-b1{left:calc(50% + 40px)}.asm-b2{right:calc(50% + 40px)}
}

/* ---------- Gamification: rotating mini-games ---------- */
.gm .gm-h1{left:calc(var(--u)*16);top:calc(var(--u)*78);right:calc(var(--u)*12);overflow:hidden;text-overflow:ellipsis;font-size:calc(var(--u)*19);font-weight:700;letter-spacing:-.03em;line-height:1.1;white-space:nowrap}
.gm-name{display:inline-block}
.gm-name.in{animation:gmIn .45s cubic-bezier(.2,.9,.3,1.2)}
@keyframes gmIn{from{opacity:0;transform:translate3d(0,8px,0)}to{opacity:1;transform:none}}
.gm .gm-pts{right:calc(var(--u)*12);top:calc(var(--u)*44);display:flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:12px;
  background:#0071e314;color:#0071e3;font-size:11.5px;font-weight:600;white-space:nowrap}
.gm-pts b{font-variant-numeric:tabular-nums}
.gm .gm-view{left:calc(var(--u)*10);right:calc(var(--u)*10);top:calc(var(--u)*110);bottom:calc(var(--u)*40);border-radius:calc(var(--u)*18);
  overflow:hidden;background:#eef3fb;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 10px 24px -14px rgba(0,30,80,.25)}
.gm-view canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.gm-view.sw canvas{animation:gmSw .6s cubic-bezier(.16,1,.3,1)}
@keyframes gmSw{from{transform:scale(1.04)}to{transform:none}}
/* game switch: a soft fade up from the dark panel (no white flash) */
.gm-flash{position:absolute;inset:0;background:#eef3fb;opacity:0;pointer-events:none}
.gm-view.sw .gm-flash{animation:gmFlash .55s ease-out}
@keyframes gmFlash{from{opacity:1}to{opacity:0}}
.gm-toast{position:absolute;top:10px;right:10px;padding:3px 9px;border-radius:999px;background:#ffd60a;color:#1d1d1f;font-size:11.5px;font-weight:700;
  opacity:0;transform:translate3d(0,6px,0) scale(.8);pointer-events:none}
.gm-toast.on{animation:gmToast .9s ease forwards}
@keyframes gmToast{0%{opacity:0;transform:translate3d(0,6px,0) scale(.8)}20%{opacity:1;transform:none}70%{opacity:1;transform:none}100%{opacity:0;transform:translate3d(0,-8px,0)}}
.gm .gm-dots{left:0;right:0;bottom:calc(var(--u)*20);display:flex;justify-content:center;gap:5px}
.gm-dots i{width:6px;height:6px;border-radius:3px;background:#c7c7cc;transition:width .35s ease,background .35s ease}
.gm-dots i.on{width:18px;background:#0071e3}

@media (prefers-reduced-motion:reduce){
  .asm-cam,.asm.a-col .asm-sweep i,.asm.a-live .asm-ring,.asm-hero.in .asm-latte,.asm-hero.in .asm-shine,.asm-pin::after,.asm.a-pub .asm-btn::after{animation:none}
  .asm-ly,.asm-badge,.asm-glow{transition:none}
  .gm-name.in,.gm-view.sw canvas,.gm-view.sw .gm-flash{animation:none}
}

/* Gamification without the phone: just the game graphics, title and points on top */
.c124-st.gm{height:440px}
.gm .c124-ph{left:0;right:0;top:0;bottom:0;width:auto;height:auto;margin:0;padding:0;border-radius:0;background:none;box-shadow:none}
.gm .c124-scr{background:none;outline:0;border-radius:0;overflow:visible}
.gm .c124-isl,.gm .c124-home,.gm .c124g-hd{display:none}
.gm .gm-h1{left:2px;right:120px;top:0;font-size:22px;line-height:32px}
.gm .gm-pts{right:0;top:4px}
.gm .gm-view{left:0;right:0;top:46px;bottom:26px;border-radius:24px;
  box-shadow:0 0 0 1px rgba(0,0,0,.06),0 30px 60px -30px rgba(0,30,80,.35),0 0 0 6px #f2f4f8}
.gm .gm-dots{bottom:2px}
@media (max-width:640px){
  .c124-st.gm{height:380px}
  .gm .gm-h1{right:104px;font-size:19px}
}

/* Gamification card: the game fills the card's height (no empty space above and below) */
.ap-g124g .fx-art.c124-art{display:flex;flex-direction:column}
.ap-g124g .c124-st.gm{flex:1 1 auto;height:auto;min-height:440px}
@media (max-width:640px){.ap-g124g .c124-st.gm{min-height:380px}}
