/* marketfx.css - Market moments (see js/marketfx.js) */
.mfx{position:fixed;inset:0;z-index:2300;display:grid;place-items:center;padding:24px 16px;--tone:var(--ac)}
.mfx.t-ok{--tone:var(--ok)}.mfx.t-bl{--tone:var(--blue)}.mfx.t-gold{--tone:#ffc900}.mfx.t-bad{--tone:var(--bad)}.mfx.t-mut{--tone:var(--mut)}
.mfx-bg{position:absolute;inset:0;background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--tone) 30%,transparent),transparent 60%),rgba(6,7,10,.82);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .25s}
.mfx-in{position:relative;width:100%;max-width:360px;text-align:center;opacity:0;transform:scale(.92);transition:opacity .25s,transform .35s cubic-bezier(.2,1.4,.4,1)}
.mfx.on .mfx-bg,.mfx.on .mfx-in{opacity:1}.mfx.on .mfx-in{transform:none}
.mfx.off .mfx-bg,.mfx.off .mfx-in{opacity:0;transition-duration:.22s}
.mfx-fx{position:absolute;left:50%;top:110px;width:0;height:0;z-index:3;pointer-events:none}
.mfx-t{margin:18px 0 4px;font-size:30px;font-weight:900;letter-spacing:-.02em;color:#fff;opacity:0;animation:mfxUp .45s .45s forwards}
.mfx-p{font-size:26px;font-weight:900;color:var(--tone);opacity:0;animation:mfxUp .4s .55s forwards}
.mfx-s{margin:6px auto 0;max-width:300px;color:#c9cfdb;font-size:14.5px;line-height:1.45;opacity:0;animation:mfxUp .4s .65s forwards}
.mfx-b{display:flex;gap:8px;justify-content:center;margin-top:20px;opacity:0;animation:mfxUp .4s .8s forwards}.mfx-b .btn{min-width:120px}
@keyframes mfxUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.mfx-car{width:150px;height:96px;display:grid;place-items:center;filter:drop-shadow(0 14px 18px rgba(0,0,0,.55))}
.mfx-car img,.mfx-car svg{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px}
.mfx-solo{position:relative;height:200px;display:grid;place-items:center}
.mfx-solo .mfx-car{width:200px;height:128px;animation:mfxIn .55s cubic-bezier(.2,1.3,.4,1) both}
@keyframes mfxIn{from{opacity:0;transform:translateY(30px) scale(.7)}}
.mfx.shake .mfx-in{animation:mfxShake .4s}.mfx.shake-soft .mfx-in{animation:mfxShake2 .5s}
@keyframes mfxShake{20%{transform:translate(-6px,3px)}40%{transform:translate(5px,-4px)}60%{transform:translate(-4px,2px)}80%{transform:translate(3px,-1px)}}
@keyframes mfxShake2{25%{transform:translateX(-8px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}

/* stamps: SOLD / DECLINED */
.mfx-stamp{position:absolute;left:50%;top:50%;padding:6px 16px;border:4px solid currentColor;border-radius:10px;font-size:34px;font-weight:900;letter-spacing:.08em;background:rgba(10,11,14,.35);transform:translate(-50%,-50%) rotate(-14deg) scale(3);opacity:0;animation:mfxStamp .35s cubic-bezier(.3,1.6,.5,1) forwards;animation-delay:.5s}
.mfx-stamp.ok{color:var(--ok)}.mfx-stamp.bad{color:var(--bad);font-size:28px}
.mfx-auctionSold .mfx-stamp{animation-delay:1.4s}
@keyframes mfxStamp{to{opacity:1;transform:translate(-50%,-50%) rotate(-14deg) scale(1)}}
.mfx-going{height:22px;position:relative;font-weight:800;color:#c9cfdb;letter-spacing:.04em}
.mfx-going i{position:absolute;inset:0;font-style:normal;opacity:0;animation:mfxGo .5s forwards}.mfx-going i:nth-child(1){animation-delay:.35s}.mfx-going i:nth-child(2){animation-delay:.85s}
@keyframes mfxGo{0%{opacity:0;transform:translateY(6px)}30%,70%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-6px)}}
.mfx-no .mfx-car{animation:mfxIn .5s both,mfxSag .6s .55s forwards}
@keyframes mfxSag{to{transform:rotate(-6deg) translateY(8px);filter:grayscale(.85) brightness(.75) drop-shadow(0 10px 14px rgba(0,0,0,.5))}}

/* trade: the two cars swap places */
.mfx-swap{position:relative;height:200px;display:flex;align-items:center;justify-content:center;gap:6px}
.mfx-swap>div{display:flex;flex-direction:column;align-items:center;gap:6px}.mfx-swap .mfx-car{width:130px;height:84px}
.mfx-swap small{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9aa3b5;opacity:0;animation:mfxUp .3s 1.1s forwards}
.mfx-sl{animation:mfxSwapL 1.1s cubic-bezier(.6,0,.3,1) both}.mfx-sr{animation:mfxSwapR 1.1s cubic-bezier(.6,0,.3,1) both}
@keyframes mfxSwapL{0%{transform:translateX(-160px);opacity:0}30%{transform:none;opacity:1}55%{transform:translate(70px,-40px) scale(.9)}100%{transform:none}}
@keyframes mfxSwapR{0%{transform:translateX(160px);opacity:0}30%{transform:none;opacity:1}55%{transform:translate(-70px,40px) scale(.9)}100%{transform:none}}
.mfx-sw{width:44px;height:44px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:22px;font-weight:900;box-shadow:0 0 0 0 color-mix(in srgb,var(--blue) 60%,transparent);animation:mfxSpin 1.1s cubic-bezier(.6,0,.3,1) both,mfxPulse 1s 1.1s 2}
@keyframes mfxSpin{0%{transform:scale(0) rotate(-180deg)}40%{transform:scale(1.2) rotate(0)}100%{transform:scale(1) rotate(360deg)}}
@keyframes mfxPulse{to{box-shadow:0 0 0 22px transparent}}

/* bought: the car drops onto a glowing platform */
.mfx-drop .mfx-car{animation:mfxDrop .7s cubic-bezier(.3,1.5,.5,1) both;position:relative;z-index:1}
@keyframes mfxDrop{0%{opacity:0;transform:translateY(-140px) scale(.85)}60%{opacity:1;transform:translateY(6px) scaleY(.92)}100%{transform:none}}
.mfx-plat{position:absolute;bottom:30px;left:50%;width:220px;height:34px;margin-left:-110px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--tone) 70%,transparent),transparent);opacity:0;animation:mfxPlat .5s .55s forwards}
@keyframes mfxPlat{from{opacity:0;transform:scale(.3)}to{opacity:1}}

/* auction won: gavel slams, shockwave rings */
.mfx-gavel{position:absolute;top:2px;right:30px;font-size:64px;transform-origin:85% 85%;animation:mfxGavel .65s cubic-bezier(.5,0,.6,1.4) both;color:#ffc900;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
@keyframes mfxGavel{0%{opacity:0;transform:rotate(-70deg) translate(30px,-30px)}55%{opacity:1;transform:rotate(-70deg)}85%{transform:rotate(12deg)}100%{transform:rotate(0)}}
.mfx-ring{position:absolute;left:50%;top:50%;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;border:3px solid var(--tone);opacity:0;animation:mfxRing .8s .62s ease-out forwards}.mfx-ring.r2{animation-delay:.76s}
@keyframes mfxRing{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(2.6)}}

/* handoff: check draws itself */
.mfx-check{position:relative;width:150px;height:150px;margin:25px auto}
.mfx-check>svg{width:100%;height:100%;fill:none;stroke:var(--ok);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.mfx-check circle{stroke-dasharray:330;stroke-dashoffset:330;animation:mfxDraw .6s .1s forwards}.mfx-check path{stroke-width:8;stroke-dasharray:80;stroke-dashoffset:80;animation:mfxDraw .35s .65s forwards}
@keyframes mfxDraw{to{stroke-dashoffset:0}}
@keyframes mfxPop{from{opacity:0;transform:scale(.2) rotate(-30deg)}to{opacity:1;transform:none}}

/* cancelled: the deal tears in half */
.mfx-tear{position:relative;height:200px;display:grid;place-items:center}
.mfx-tk{position:absolute;padding:14px 18px;border-radius:16px;background:#1b1f27;border:1px dashed #3a404c}
.mfx-tk.l{clip-path:polygon(0 0,52% 0,46% 22%,54% 45%,45% 68%,53% 100%,0 100%);animation:mfxTearL .7s .45s cubic-bezier(.5,0,.5,1) forwards}
.mfx-tk.r{clip-path:polygon(52% 0,100% 0,100% 100%,53% 100%,45% 68%,54% 45%,46% 22%);animation:mfxTearR .7s .45s cubic-bezier(.5,0,.5,1) forwards}
@keyframes mfxTearL{to{transform:translate(-34px,22px) rotate(-12deg);opacity:.55;filter:grayscale(1)}}
@keyframes mfxTearR{to{transform:translate(34px,30px) rotate(10deg);opacity:.55;filter:grayscale(1)}}

/* outbid: red alarm, price tag jumps */
.mfx-outbid .mfx-bg{animation:mfxAlarm 1s 2}
@keyframes mfxAlarm{50%{background-color:rgba(120,10,20,.6)}}
.mfx-shake .mfx-car{animation:mfxIn .4s both,mfxShake2 .45s .4s}
.mfx-tag{position:absolute;right:28px;top:26px;padding:6px 12px;border-radius:10px;background:var(--bad);color:#fff;font-size:18px;font-weight:900;transform:rotate(8deg);animation:mfxPop .4s .5s cubic-bezier(.3,1.6,.5,1) both}

/* particles */
[class^="mfx-p-"]{position:absolute;left:0;top:0;pointer-events:none;animation:mfxFly 1.1s cubic-bezier(.15,.7,.4,1) forwards}
.mfx-p-conf{width:8px;height:13px;margin:-6px 0 0 -4px;border-radius:2px;background:var(--c)}
.mfx-p-spark{width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--c);box-shadow:0 0 10px var(--c)}
.mfx-p-coin{width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--c);color:#5c3b00;font:900 12px/22px var(--font);text-align:center;box-shadow:inset 0 -2px 0 rgba(0,0,0,.2)}
.mfx-p-heart{color:var(--c);font-size:14px;margin:-8px 0 0 -6px}
@keyframes mfxFly{0%{opacity:1;transform:translate(0,0) rotate(0) scale(.6)}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 70px)) rotate(var(--r)) scale(1)}}
.mfx-p-spark,.mfx-p-heart{animation-name:mfxFly2;animation-duration:.8s}
@keyframes mfxFly2{0%{opacity:1;transform:translate(0,0) scale(.5)}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1.1)}}

/* small moments: chip at the top */
.mfx-chip{position:fixed;left:50%;top:calc(12px + env(safe-area-inset-top));z-index:2250;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 32px);padding:10px 16px 10px 10px;border-radius:18px;background:var(--card);border:1px solid var(--line);box-shadow:var(--float);transform:translate(-50%,-140%);animation:mfxChipIn .45s cubic-bezier(.2,1.4,.4,1) forwards}
.mfx-chip.off{animation:mfxChipOut .3s forwards}
@keyframes mfxChipIn{to{transform:translate(-50%,0)}}
@keyframes mfxChipOut{from{transform:translate(-50%,0)}to{transform:translate(-50%,-140%);opacity:0}}
.mfx-ci{position:relative;width:38px;height:38px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;font-size:19px;background:var(--card2)}
.mfx-ct{min-width:0;text-align:left}.mfx-ct b{display:block;font-size:14.5px}.mfx-ct small{display:block;color:var(--mut);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.c-bid .mfx-ci{color:#ffc900;background:color-mix(in srgb,#ffc900 22%,var(--card2));animation:mfxTap .5s .25s}
@keyframes mfxTap{40%{transform:rotate(-28deg) scale(1.1)}70%{transform:rotate(8deg)}}
.c-newBid .mfx-ci{background:color-mix(in srgb,var(--ok) 22%,var(--card2));animation:mfxPop .4s .2s both}
.c-offerSent .mfx-ci{background:color-mix(in srgb,var(--blue) 22%,var(--card2));overflow:hidden}.c-offerSent .mfx-ci{animation:mfxPlane 1s .3s}
@keyframes mfxPlane{0%{text-indent:0}45%{text-indent:60px}46%{text-indent:-60px}100%{text-indent:0}}
.c-offerIn .mfx-ci{background:color-mix(in srgb,var(--blue) 22%,var(--card2));animation:mfxSpin .7s both}
.c-rejected .mfx-ci{color:var(--bad);font-weight:900;background:color-mix(in srgb,var(--bad) 18%,var(--card2));animation:mfxShake2 .45s .25s}
.c-watch .mfx-ci{color:#ff7aa8;background:color-mix(in srgb,#ff7aa8 18%,var(--card2));animation:mfxBeat .5s .2s}
@keyframes mfxBeat{30%{transform:scale(1.3)}60%{transform:scale(.95)}}
.c-lost .mfx-ci{background:var(--card2);filter:grayscale(1)}
:root[data-theme=light] .mfx-tk{background:#fff;border-color:#c8ced8}

/* request to buy: sent (car -> envelope -> seller) and received (envelope opens) */
.mfx-req{position:relative;height:210px}
.mfx-req>*{position:absolute;left:50%;top:50%}
.mfx-pt{position:absolute;left:50%;top:50%;width:0;height:0}
.mfx-env{width:132px;height:86px;margin:-43px 0 0 -66px;border-radius:12px;background:linear-gradient(160deg,#ff7a3d,#e4572e);box-shadow:0 14px 30px rgba(0,0,0,.45);perspective:400px;z-index:2}
.mfx-env::before{content:'';position:absolute;inset:0;border-radius:12px;background:linear-gradient(to top right,transparent 49%,rgba(0,0,0,.16) 50%,transparent 51%),linear-gradient(to top left,transparent 49%,rgba(0,0,0,.16) 50%,transparent 51%)}
.mfx-flap{position:absolute;left:0;right:0;top:0;height:56px;background:linear-gradient(180deg,#ffa36b,#f0652a);clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top;border-radius:12px 12px 0 0}
/* sent */
.mfx-req.sent .mfx-rcar{margin:-70px 0 0 -80px;z-index:3;animation:mfxRcar 1s cubic-bezier(.5,0,.4,1) both}
.mfx-req.sent .mfx-rcar .mfx-car{width:160px;height:100px}
@keyframes mfxRcar{0%{opacity:0;transform:translateY(-30px) scale(.8)}25%,55%{opacity:1;transform:none}100%{opacity:0;transform:translateY(46px) scale(.3)}}
.mfx-req.sent .mfx-env{opacity:0;animation:mfxEnvIn .35s .45s cubic-bezier(.3,1.4,.5,1) forwards,mfxEnvFly .55s 1.15s cubic-bezier(.6,0,.4,1) forwards}
.mfx-req.sent .mfx-flap{transform:rotateX(180deg);animation:mfxFlapShut .25s .9s ease-in forwards}
@keyframes mfxEnvIn{from{opacity:0;transform:scale(.6) translateY(20px)}to{opacity:1;transform:none}}
@keyframes mfxEnvFly{0%{opacity:1;transform:none}60%{opacity:1}100%{opacity:0;transform:translate(110px,-74px) rotate(14deg) scale(.25)}}
@keyframes mfxFlapShut{to{transform:rotateX(0)}}
.mfx-rto{margin:-29px 0 0 -29px;transform:translate(110px,-74px);opacity:0;animation:mfxRto .4s .2s ease-out forwards,mfxRtoC .5s 1.65s cubic-bezier(.3,1.5,.5,1) forwards}
@keyframes mfxRto{to{opacity:.55}}
@keyframes mfxRtoC{0%{opacity:.55}40%{transform:translate(110px,-74px) scale(1.18);opacity:1}100%{transform:translate(0,-6px) scale(1.4);opacity:1}}
.mfx-rto .av{box-shadow:0 0 0 3px var(--card),0 8px 18px rgba(0,0,0,.4)}
.mfx-ok{position:absolute;right:-6px;bottom:-4px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--ok);color:#fff;font-size:13px;box-shadow:0 0 0 2px var(--card);transform:scale(0);animation:mfxPop .35s 1.8s cubic-bezier(.3,1.6,.5,1) forwards}
.mfx-rto .mfx-ring{width:58px;height:58px;margin:-29px 0 0 -29px;animation-delay:1.7s}
/* received */
.mfx-req.in .mfx-env{animation:mfxEnvArrive .7s cubic-bezier(.3,1.2,.5,1) both}
@keyframes mfxEnvArrive{0%{opacity:0;transform:translate(-150px,-110px) rotate(-24deg) scale(.4)}100%{opacity:1;transform:translateY(24px)}}
.mfx-req.in .mfx-flap{animation:mfxFlapOpen .3s .75s ease-out forwards;z-index:1}
@keyframes mfxFlapOpen{to{transform:rotateX(180deg)}}
.mfx-note{display:flex;align-items:center;gap:10px;width:230px;margin:-34px 0 0 -115px;padding:10px 12px;border-radius:14px;background:var(--card);border:1px solid var(--line);box-shadow:0 12px 26px rgba(0,0,0,.4);text-align:left;z-index:1;opacity:0;animation:mfxNoteUp .55s 1s cubic-bezier(.3,1.3,.5,1) forwards}
@keyframes mfxNoteUp{0%{opacity:0;transform:translateY(40px) scale(.7)}100%{opacity:1;transform:translateY(-44px);z-index:3}}
.mfx-note span{flex:1;min-width:0}.mfx-note b{display:block;font-size:14px;color:var(--tx)}.mfx-note small{display:block;font-size:12px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mfx-note em{font-style:normal;font-weight:900;color:var(--ok);font-size:16px}
.mfx-reqIn .mfx-b .btn{min-width:96px}

/* swap offer: sent (your car reaches for theirs) and received (their car races in) */
.mfx-sx{position:relative;height:190px;display:flex;align-items:center;justify-content:center;gap:4px}
.mfx-sx>div{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;z-index:2}
.mfx-sx .mfx-car{width:128px;height:82px}
.mfx-sx small{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9aa3b5}
.mfx-dash{position:absolute;left:22%;right:22%;top:44%;height:0;border-top:2px dashed color-mix(in srgb,var(--blue) 70%,#fff);transform:scaleX(0);transform-origin:left;z-index:1;animation:mfxDash .45s .6s ease-out forwards}
@keyframes mfxDash{to{transform:scaleX(1)}}
.mfx-xs{position:relative;z-index:3;flex-shrink:0;width:46px;height:46px;margin-top:-22px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:22px;font-weight:900;box-shadow:0 0 0 0 color-mix(in srgb,var(--blue) 60%,transparent);transform:scale(0);animation:mfxSpin .7s .9s cubic-bezier(.3,1.4,.5,1) forwards,mfxPulse 1s 1.6s 2}
.mfx-xav{position:absolute;top:-6px;right:4px}.mfx-xav .av{box-shadow:0 0 0 2px var(--card)}
/* sent */
.mfx-sx.sent .mfx-xa{animation:mfxXaIn .55s cubic-bezier(.3,1.2,.5,1) both}
@keyframes mfxXaIn{from{opacity:0;transform:translateX(-120px) rotate(-6deg)}}
.mfx-sx.sent .mfx-xb{opacity:0;animation:mfxXbGhost .5s .2s ease-out forwards}
@keyframes mfxXbGhost{to{opacity:.85}}
.mfx-sx.sent .mfx-xb .mfx-car{filter:grayscale(.6) brightness(.8) drop-shadow(0 14px 18px rgba(0,0,0,.55));animation:mfxXbLit .5s 1.3s forwards}
@keyframes mfxXbLit{to{filter:none}}
.mfx-q{position:absolute;left:50%;top:22%;width:30px;height:30px;margin-left:-15px;border-radius:50%;display:grid;place-items:center;background:var(--ac2);color:#111;font-size:17px;font-weight:900;transform:scale(0);animation:mfxPop .35s 1.25s cubic-bezier(.3,1.6,.5,1) forwards}
.mfx-sx .mfx-ring{top:34%;width:64px;height:64px;margin:-32px 0 0 -32px;border-color:var(--ac2);animation-delay:1.3s}
/* received */
.mfx-sx.in .mfx-xa{animation:mfxXaRock .5s .75s}
@keyframes mfxXaRock{40%{transform:translateX(-6px) rotate(-3deg)}}
.mfx-sx.in .mfx-xb{animation:mfxRaceIn .8s cubic-bezier(.2,.9,.3,1.15) both}
@keyframes mfxRaceIn{0%{opacity:0;transform:translateX(260px)}55%{opacity:1;transform:translateX(-14px)}75%{transform:translateX(6px) rotate(2deg)}100%{transform:none}}
.mfx-speed{position:absolute;right:-40px;top:30%;width:70px;height:34px;z-index:-1;background:repeating-linear-gradient(180deg,transparent 0 6px,rgba(255,255,255,.5) 6px 8px);-webkit-mask:linear-gradient(90deg,#000,transparent);mask:linear-gradient(90deg,#000,transparent);animation:mfxSpeed .7s .1s forwards;opacity:0}
@keyframes mfxSpeed{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(40px)}}
.mfx-val{display:inline-block;margin-top:-6px;padding:5px 12px;border-radius:99px;font-size:13px;font-weight:800;background:rgba(255,255,255,.08);color:#c9cfdb;opacity:0;animation:mfxUp .35s 1.3s forwards}
.mfx-val.v-ok{color:var(--ok)}.mfx-val.v-up{color:#7fe3c4}.mfx-val.v-dn{color:var(--ac2)}
.mfx-swapIn .mfx-b .btn{min-width:96px}

/* trade moments, stacked for a tall phone screen: what you get on top, what you give below, ⇅ between */
.mfx-swap,.mfx-sx{flex-direction:column-reverse;height:auto;min-height:380px;gap:2px;padding:6px 0}
.mfx-swap .mfx-car,.mfx-sx .mfx-car{width:220px;height:140px}
.mfx-sw,.mfx-xs{margin:-6px 0;z-index:3}
.mfx-sw .ic,.mfx-xs .ic{transform:rotate(90deg)}
.mfx-trade .mfx-fx{top:205px}
/* trade agreed: the cars cross over vertically */
@keyframes mfxSwapL{0%{transform:translateY(170px);opacity:0}30%{transform:none;opacity:1}55%{transform:translate(-70px,-120px) scale(.88)}100%{transform:none}}
@keyframes mfxSwapR{0%{transform:translateY(-170px);opacity:0}30%{transform:none;opacity:1}55%{transform:translate(70px,120px) scale(.88)}100%{transform:none}}
/* swap offer: the dashed line runs up from your car to theirs */
.mfx-dash{left:50%;right:auto;top:24%;bottom:24%;width:0;height:auto;border-top:0;border-left:2px dashed color-mix(in srgb,var(--blue) 70%,#fff);transform:scaleY(0);transform-origin:bottom}
@keyframes mfxDash{to{transform:scaleY(1)}}
.mfx-sx.sent .mfx-xa{animation-name:mfxXaUp}
@keyframes mfxXaUp{from{opacity:0;transform:translateY(140px) scale(.9)}}
.mfx-sx .mfx-ring{top:40%;width:80px;height:80px;margin:-40px 0 0 -40px}
.mfx-q{top:30%;width:36px;height:36px;margin-left:-18px;font-size:20px}
.mfx-xav{top:-4px;right:-8px}
/* new swap offer: their car drops in from the top */
.mfx-sx.in .mfx-xb{animation-name:mfxDropIn}
@keyframes mfxDropIn{0%{opacity:0;transform:translateY(-280px)}55%{opacity:1;transform:translateY(14px) scaleY(.94)}75%{transform:translateY(-6px)}100%{transform:none}}
.mfx-speed{right:auto;left:50%;top:-56px;width:120px;height:70px;margin-left:-60px;background:repeating-linear-gradient(90deg,transparent 0 10px,rgba(255,255,255,.5) 10px 12px);-webkit-mask:linear-gradient(0deg,#000,transparent);mask:linear-gradient(0deg,#000,transparent)}
@keyframes mfxSpeed{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-40px)}}
@keyframes mfxXaRock{40%{transform:translateY(6px) scaleY(.96)}}
.mfx-val{margin-top:2px}
/* shorter phones: smaller cars so the buttons stay on screen */
@media (max-height:740px){.mfx-swap,.mfx-sx{min-height:300px}.mfx-swap .mfx-car,.mfx-sx .mfx-car{width:170px;height:106px}.mfx-trade .mfx-fx{top:165px}.mfx-t{margin-top:10px}}
.mfx-sx .mfx-xb small,.mfx-swap .mfx-sr small{order:-1}
.mfx-dash{top:37%;bottom:37%}
/* car details in trade moments: above the top car, below the bottom one */
.mfx-swap .mfx-car,.mfx-sx .mfx-car{width:196px;height:124px}
.mfx-xi{display:flex;flex-direction:column;align-items:center;gap:1px;max-width:280px;line-height:1.25;opacity:0;animation:mfxUp .35s .9s forwards}
.mfx-sr .mfx-xi,.mfx-xb .mfx-xi{order:-1;margin-bottom:2px}.mfx-sl .mfx-xi,.mfx-xa .mfx-xi{margin-top:2px}
.mfx-xi small{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9aa3b5;margin-bottom:2px}
.mfx-xi b{display:flex;align-items:baseline;gap:8px;max-width:100%;font-size:15px;font-weight:800;color:#fff}
.mfx-xi b span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mfx-xi b em{flex-shrink:0;font-style:normal;font-size:14px;color:color-mix(in srgb,var(--blue) 55%,#fff)}
.mfx-xi i{font-style:normal;font-size:12px;color:#9aa3b5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mfx-sx.sent .mfx-xa .mfx-xi{animation-delay:.45s}.mfx-sx.in .mfx-xb .mfx-xi{animation-delay:.7s}
.mfx-trade .mfx-xi{animation-delay:1.1s}
.mfx-swap,.mfx-sx{min-height:430px}
.mfx-q{top:44%}.mfx-sx .mfx-ring{top:52%}.mfx-xav{top:44px}
.mfx-trade .mfx-fx{top:230px}
@media (max-height:740px){.mfx-swap,.mfx-sx{min-height:330px}.mfx-swap .mfx-car,.mfx-sx .mfx-car{width:150px;height:94px}.mfx-xi b{font-size:14px}.mfx-xi i{font-size:11.5px}.mfx-trade .mfx-fx{top:180px}.mfx-xav{top:38px}}
.mfx-xav{top:70px;right:14px}
@media (max-height:740px){.mfx-xav{top:62px;right:20px}}
