/* the "trade saved" moment (savemoment.js), sm- prefixed. Follows the site
   theme and accent. Animations are transform and opacity only. */
.sm-fly{position:fixed;z-index:1200;left:0;top:0;font:900 19px 'Heebo',sans-serif;direction:ltr;color:#fff;border-radius:99px;padding:7px 15px;box-shadow:0 8px 22px rgba(0,0,0,.4);pointer-events:none;white-space:nowrap;}
html[data-theme="dark"] .sm-fly{color:#0C0A11;}
.cal-cell.sm-paint{position:relative;z-index:2;animation:sm-cell .75s cubic-bezier(.2,.9,.3,1.5);}
@keyframes sm-cell{30%{transform:scale(1.4);}}
.sm-ring{position:fixed;z-index:1100;border:3px solid;border-radius:10px;pointer-events:none;animation:sm-ring .9s ease-out both;}
@keyframes sm-ring{to{opacity:0;transform:scale(3);}}

.sm-card{--c:var(--green);position:fixed;z-index:900;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));width:min(480px,calc(100% - 24px));transform:translateX(-50%);background:linear-gradient(150deg,color-mix(in srgb,var(--c) 20%,var(--card)),var(--card) 62%);border:1.5px solid var(--c);border-radius:22px;padding:16px 16px 20px;display:grid;grid-template-columns:60px minmax(0,1fr);gap:4px 14px;align-items:center;overflow:hidden;box-shadow:0 22px 50px rgba(0,0,0,.45);font-family:'Heebo',sans-serif;color:var(--ink);animation:sm-in .6s cubic-bezier(.2,.9,.3,1.25) both;}
@keyframes sm-in{from{opacity:0;transform:translate(-50%,120%) scale(.85);}}
.sm-card.sm-leave{animation:sm-out .35s ease-in forwards;}
@keyframes sm-out{to{opacity:0;transform:translate(-50%,120%);}}
.sm-card.sm-broken{animation:sm-in .6s cubic-bezier(.2,.9,.3,1.25) both,sm-shake .5s .55s;}
.sm-card.sm-broken.sm-leave{animation:sm-out .35s ease-in forwards;}
@keyframes sm-shake{20%,60%{translate:-12px 0;}40%,80%{translate:12px 0;}}
.sm-broken,.sm-already{--c:var(--red);}
.sm-limit,.sm-full{--c:var(--orange);}
.sm-record{--c:#D9A420;}
.sm-icon{grid-row:span 2;width:60px;height:66px;display:grid;place-items:center;font-size:42px;animation:sm-icon .7s .3s both cubic-bezier(.2,.9,.3,2);}
@keyframes sm-icon{from{opacity:0;transform:scale(.2) rotate(-35deg);}}
.sm-icon svg{width:56px;height:62px;overflow:visible;fill:color-mix(in srgb,var(--c) 22%,transparent);stroke:var(--c);stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round;}
.sm-icon .sm-crack{fill:none;stroke:var(--ink);stroke-width:2.5;opacity:0;animation:sm-show .1s .75s forwards;}
@keyframes sm-show{to{opacity:1;}}
.sm-icon .sm-tick{fill:none;stroke-width:5;transform-origin:27px 29px;animation:sm-tick .45s .65s both cubic-bezier(.2,.9,.3,2);}
@keyframes sm-tick{from{opacity:0;transform:scale(2.4);}}
.sm-card h4{margin:0;font-size:19px;font-weight:900;line-height:1.3;align-self:end;animation:sm-rise .45s .4s both;}
.sm-card p{margin:0;font-size:14px;opacity:.75;align-self:start;animation:sm-text .45s .55s both;}
@keyframes sm-rise{from{opacity:0;transform:translateY(12px);}}
@keyframes sm-text{from{opacity:0;transform:translateY(12px);}to{opacity:.75;}}
.sm-dots{grid-column:1/-1;display:flex;gap:6px;margin-top:10px;}
.sm-dots i{flex:1;height:9px;border-radius:99px;background:color-mix(in srgb,var(--ink) 12%,transparent);}
.sm-dots i.sm-used{background:var(--c);animation:sm-dot .5s .75s both cubic-bezier(.2,.9,.3,2);}
@keyframes sm-dot{from{transform:scaleY(3);opacity:0;}}
.sm-acts{grid-column:1/-1;display:flex;gap:8px;margin-top:8px;}
.sm-acts>*{flex:1;text-align:center;text-decoration:none;background:var(--card-soft);border:1px solid var(--border);border-radius:12px;padding:9px;font:700 13.5px 'Heebo',sans-serif;color:var(--ink);cursor:pointer;}
.sm-timer{position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--c);transform-origin:right;animation:sm-timer 7s linear forwards;}
@keyframes sm-timer{to{transform:scaleX(0);}}
.sm-spark{position:fixed;width:9px;height:5px;pointer-events:none;z-index:1200;}
@media(prefers-reduced-motion:reduce){.sm-card,.sm-card *{animation-duration:.01s!important;animation-delay:0s!important;}.sm-card .sm-timer{animation-duration:7s!important;}}
