@property --rm-curl{syntax:'<number>';inherits:true;initial-value:0}
.trip-reward-dialog .rm{position:relative;display:block;width:100%;max-width:310px;margin:18px auto;isolation:isolate}
.trip-reward-dialog .rm img.rm-image{display:block;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;border-radius:0;margin:0}
.rm-sticker{aspect-ratio:3.4;--rm-curl:0;transform-origin:20% 50%;filter:drop-shadow(0 1px 1px #3c283c12)}
.trip-reward-dialog .rm-sticker{max-width:520px;margin:35px auto}
.rm-face{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--rm-curl)*1.5%),calc(100% - var(--rm-curl)*1%) 100%,0 100%);border-radius:28px;overflow:hidden;background:#fffdf7}
.trip-reward-dialog .rm-face img.rm-image{position:absolute;width:109%;height:147%;left:-4.5%;top:-24%;object-fit:fill}
.rm-fold{position:absolute;bottom:0;right:0;width:calc(var(--rm-curl)*1%);height:calc(var(--rm-curl)*1.5%);background:linear-gradient(135deg,#d9dadd 15%,#bfc1c6 58%,#92959d 99%);clip-path:polygon(0 0,100% 0,0 100%);border-radius:3px 0 0 0}
.rm-sticker.rm-play{animation:rm-peel 1.5s cubic-bezier(.45,.08,.72,.62) both}
@keyframes rm-peel{0%{--rm-curl:24;transform:translateY(-5px) rotate(-1deg);filter:drop-shadow(3px 9px 7px #3c283c30)}100%{--rm-curl:0;transform:none;filter:drop-shadow(0 1px 1px #3c283c12)}}
.rm-socks{aspect-ratio:1.2931034483}
/* Preserve the enlarged pair with its full vertical image area, including the cuffs. */
.trip-reward-dialog .rm-socks{max-width:370px}
.trip-reward-dialog .rm-socks img.rm-image{position:absolute;width:116%;height:100%;left:-8%;top:0}
.rm-sock{position:absolute;inset:0}.rm-left{clip-path:polygon(0 0,51% 0,51% 54.31%,50.5% 60.34%,50% 100%,0 100%)}.rm-right{clip-path:polygon(51% 0,100% 0,100% 100%,50% 100%,50.5% 60.34%,51% 54.31%)}
.rm-play .rm-left{animation:rm-left-step 1.5s cubic-bezier(.22,.6,.35,1) both}.rm-play .rm-right{animation:rm-right-step 1.5s cubic-bezier(.22,.6,.35,1) both}
@keyframes rm-left-step{0%,55%,100%{transform:translateY(0)}25%{transform:translateY(-8px)}}@keyframes rm-right-step{0%,35%,100%{transform:translateY(0)}65%{transform:translateY(-8px)}}
.rm-mug,.rm-shirt{aspect-ratio:1.095}.rm-glint{position:absolute;z-index:2;opacity:0;overflow:visible;filter:drop-shadow(0 0 3px #e7bd6380)}.rm-glint path{fill:#fffef5;stroke:#e2bb68;stroke-width:2.4;stroke-linejoin:round}.rm-main{width:20%;right:2%;top:5%}.rm-small{width:9%;right:-2%;top:25%}.rm-play .rm-main{animation:rm-glint 1s ease-in-out both}.rm-play .rm-small{animation:rm-companion 1s ease-in-out both}
@keyframes rm-glint{0%{opacity:0;transform:scale(.2) rotate(-12deg)}25%{opacity:1;transform:scale(1)}45%{opacity:1;transform:scale(1.12) rotate(5deg)}100%{opacity:0;transform:scale(.15) rotate(12deg)}}@keyframes rm-companion{0%,20%{opacity:0;transform:scale(.1)}45%{opacity:1;transform:scale(1)}70%{opacity:.85;transform:scale(.8)}100%{opacity:0;transform:scale(.1)}}
/* Keep the shirt image in normal flow so it has a visible height on mobile.
   Animate standard clip-path values, with the complete shirt as the fallback. */
.rm-roll{position:relative;clip-path:none}
.trip-reward-dialog .rm-shirt img.rm-image{width:100%;height:auto}
.rm-roll-edge{position:absolute;left:19%;right:19%;top:94%;height:6%;border-radius:50% 50% 30% 30%;background:linear-gradient(#05869e,#29a7ba 45%,#056c82);box-shadow:0 3px 4px #26374330;opacity:0}
.rm-play .rm-roll{animation:rm-unroll 1.5s cubic-bezier(.4,.08,.7,.75) both}
.rm-play .rm-roll-edge{animation:rm-roll-fade 1.5s cubic-bezier(.4,.08,.7,.75) both}
@keyframes rm-unroll{from{clip-path:inset(0 0 35% 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes rm-roll-fade{0%{top:59%;opacity:1}65%{opacity:1}100%{top:94%;opacity:0}}
@media(prefers-reduced-motion:reduce){.rm.rm-play,.rm-play *{animation:none!important}.rm-glint,.rm-fold,.rm-roll-edge{display:none}.rm-roll{clip-path:none}}
