/* Guide pictures that move (round 7). Markup comes from guide-motion.js:
   <gm-art data-gm="swing-up" class="s on"><img …the flat drawing, kept as the sizing box…><gm-l class="a"/><gm-l class="b"/><gm-l class="c"/><gm-l class="h"/></gm-art>
   a b c = arrows / shield / small parts, h = hand + phone. Only transforms move; nothing fades, flashes or glows.
   Lengths match GM_MOTIONS in guide-motion.js. A cue moves only while it is `.on`; otherwise it rests in the pose drawn here. */
gm-art{position:relative;display:block;flex:none;line-height:0;
 --gm-hand:url(/ui/guide/l/hand.webp);--gm-thumb:url(/ui/guide/l/hand-thumb.webp);--gm-flat:url(/ui/guide/l/hand-flat.webp);
 --gm-up:url(/ui/guide/l/arrow-up.webp);--gm-down:url(/ui/guide/l/arrow-down.webp);--gm-right:url(/ui/guide/l/arrow-right.webp);--gm-tilt:url(/ui/guide/l/arrow-tilt.webp);
 --gm-shield:url(/ui/guide/l/shield.webp);--gm-ring:url(/ui/guide/l/ring.webp);--gm-qr:url(/ui/guide/l/qr.webp);--gm-name:url(/ui/guide/l/name-blank.webp);--gm-scan:url(/ui/guide/scan.webp)}
gm-art.s{
 --gm-hand:url(/ui/guide/s/l/hand.webp);--gm-thumb:url(/ui/guide/s/l/hand-thumb.webp);--gm-flat:url(/ui/guide/s/l/hand-flat.webp);
 --gm-up:url(/ui/guide/s/l/arrow-up.webp);--gm-down:url(/ui/guide/s/l/arrow-down.webp);--gm-right:url(/ui/guide/s/l/arrow-right.webp);--gm-tilt:url(/ui/guide/s/l/arrow-tilt.webp);
 --gm-shield:url(/ui/guide/s/l/shield.webp);--gm-ring:url(/ui/guide/s/l/ring.webp);--gm-qr:url(/ui/guide/s/l/qr.webp);--gm-name:url(/ui/guide/s/l/name-blank.webp);--gm-scan:url(/ui/guide/s/scan.webp)}
gm-art[hidden]{display:none}
gm-art>img{visibility:hidden}
gm-art>gm-l{position:absolute;display:none;background:center/contain no-repeat;pointer-events:none}
.gm-hold gm-art>gm-l{animation-play-state:paused}

/* ---- where each layer sits (percent of the picture box) ---- */
gm-art[data-gm=swing-up]>.h{display:block;left:17%;top:19%;width:43.5%;height:78%;background-image:var(--gm-hand);transform-origin:50% 86%}
gm-art[data-gm=swing-up]>.a{display:block;left:34%;top:4%;width:64%;height:54.3%;background-image:var(--gm-up);transform-origin:10% 90%}
gm-art[data-gm=swing-down]>.h{display:block;left:17%;top:14%;width:43.5%;height:78%;background-image:var(--gm-hand);transform-origin:50% 86%}
gm-art[data-gm=swing-down]>.a{display:block;left:36%;top:8%;width:62%;height:59.2%;background-image:var(--gm-down);transform-origin:10% 12%}
gm-art[data-gm=swing-side]>.h{display:block;left:28.2%;top:11%;width:43.5%;height:78%;background-image:var(--gm-hand);transform-origin:50% 86%}
gm-art[data-gm=swing-side]>.a{display:block;left:68%;top:32%;width:31%;height:20.3%;background-image:var(--gm-right)}
gm-art[data-gm=swing-side]>.b{display:block;left:1%;top:32%;width:31%;height:20.3%;background-image:var(--gm-right);transform:scaleX(-1)}
gm-art[data-gm=pull-swing]>.h{display:block;left:18%;top:21%;width:55.4%;height:76%;background-image:var(--gm-thumb);transform-origin:46% 84%}
gm-art[data-gm=pull-swing]>.a{display:block;left:45%;top:3%;width:54%;height:45.8%;background-image:var(--gm-up);transform-origin:10% 90%}
gm-art[data-gm=pull-swing]>.b{display:block;left:1%;top:60%;width:27%;height:17.7%;background-image:var(--gm-right);transform:scaleX(-1)}
gm-art[data-gm=tilt-run]>.h{display:block;left:28.2%;top:13%;width:43.5%;height:78%;background-image:var(--gm-hand);transform-origin:50% 84%}
gm-art[data-gm=tilt-run]>.a{display:block;left:75%;top:20%;width:23.4%;height:25%;background-image:var(--gm-tilt)}
gm-art[data-gm=tilt-run]>.b{display:block;left:1.6%;top:20%;width:23.4%;height:25%;background-image:var(--gm-tilt);transform:scaleX(-1)}
gm-art[data-gm=guard-flat]>.a{display:block;left:26%;top:5%;width:62.9%;height:74%;background-image:var(--gm-shield)}
gm-art[data-gm=guard-flat]>.h{display:block;left:5%;top:27%;width:86.2%;height:68%;background-image:var(--gm-flat);transform-origin:60% 40%}
gm-art[data-gm=guard-up]>.a{display:block;left:18%;top:3%;width:66.3%;height:78%;background-image:var(--gm-shield)}
gm-art[data-gm=guard-up]>.h{display:block;left:28%;top:17%;width:44.6%;height:80%;background-image:var(--gm-hand);transform-origin:50% 60%}
gm-art[data-gm=tap]>.h{display:block;left:18%;top:11%;width:61.2%;height:84%;background-image:var(--gm-thumb);transform-origin:52% 44%}
gm-art[data-gm=tap]>.a{display:block;left:33.5%;top:24.5%;width:38%;height:38%;background-image:var(--gm-ring);z-index:1}
gm-art[data-gm=scan]>.a{display:block;left:60%;top:2%;width:37.2%;height:55%;background-image:var(--gm-qr);transform-origin:50% 100%}
gm-art[data-gm=scan]>.h{display:block;left:0;top:24%;width:76%;height:76%;background-image:var(--gm-scan);transform-origin:60% 40%}
gm-art[data-gm=name]>.h{display:block;left:13.5%;top:4%;width:73%;height:92%;background-image:var(--gm-name)}
gm-art[data-gm=name]>.a,gm-art[data-gm=name]>.b,gm-art[data-gm=name]>.c{display:block;top:47.6%;width:6.4%;height:6.2%;border-radius:32%;background:#16324a;z-index:1}
gm-art[data-gm=name]>.a{left:39.6%}gm-art[data-gm=name]>.b{left:47.2%}gm-art[data-gm=name]>.c{left:54.8%}

/* ---- one loop each: gather, go fast, run a little past, settle ---- */
gm-art[data-gm=swing-up].on>.h{animation:gm-up-h 1.5s linear}
gm-art[data-gm=swing-up].on>.a{animation:gm-up-a 1.5s linear}
@keyframes gm-up-h{0%{transform:none;animation-timing-function:cubic-bezier(.3,0,.3,1)}24%,30%{transform:translate(-9%,7%) rotate(-22deg);animation-timing-function:cubic-bezier(.6,0,.9,.5)}44%{transform:translate(12%,-10%) rotate(25deg);animation-timing-function:ease-out}54%{transform:translate(8%,-7%) rotate(16deg);animation-timing-function:ease-in-out}63%{transform:translate(10%,-8.5%) rotate(20deg);animation-timing-function:cubic-bezier(.4,0,.3,1)}100%{transform:none}}
@keyframes gm-up-a{0%{transform:none;animation-timing-function:ease-out}24%,30%{transform:translate(-5%,5%) scale(.88);animation-timing-function:cubic-bezier(.6,0,.9,.5)}44%{transform:translate(6%,-6%) scale(1.12);animation-timing-function:ease-out}54%{transform:translate(1%,-1%) scale(.97);animation-timing-function:ease-in-out}63%{transform:translate(2%,-2%) scale(1.03)}100%{transform:none}}
gm-art[data-gm=swing-down].on>.h{animation:gm-down-h 1.5s linear}
gm-art[data-gm=swing-down].on>.a{animation:gm-down-a 1.5s linear}
@keyframes gm-down-h{0%{transform:none;animation-timing-function:cubic-bezier(.3,0,.3,1)}24%,30%{transform:translate(-7%,-8%) rotate(-24deg);animation-timing-function:cubic-bezier(.6,0,.9,.5)}44%{transform:translate(14%,9%) rotate(31deg);animation-timing-function:ease-out}54%{transform:translate(10%,6%) rotate(21deg);animation-timing-function:ease-in-out}63%{transform:translate(12%,7.5%) rotate(26deg);animation-timing-function:cubic-bezier(.4,0,.3,1)}100%{transform:none}}
@keyframes gm-down-a{0%{transform:none;animation-timing-function:ease-out}24%,30%{transform:translate(-4%,-5%) scale(.88);animation-timing-function:cubic-bezier(.6,0,.9,.5)}44%{transform:translate(5%,7%) scale(1.12);animation-timing-function:ease-out}54%{transform:translate(1%,1%) scale(.97);animation-timing-function:ease-in-out}63%{transform:translate(2%,2%) scale(1.03)}100%{transform:none}}
gm-art[data-gm=swing-side].on>.h{animation:gm-side-h 1.7s linear}
gm-art[data-gm=swing-side].on>.a{animation:gm-side-a 1.7s linear}
gm-art[data-gm=swing-side].on>.b{animation:gm-side-b 1.7s linear}
@keyframes gm-side-h{0%{transform:none;animation-timing-function:cubic-bezier(.3,0,.3,1)}18%,23%{transform:translate(-17%,0) rotate(-12deg);animation-timing-function:cubic-bezier(.6,0,.9,.5)}34%{transform:translate(20%,0) rotate(14deg);animation-timing-function:ease-out}42%,46%{transform:translate(15%,0) rotate(9deg);animation-timing-function:cubic-bezier(.6,0,.9,.5)}58%{transform:translate(-20%,0) rotate(-14deg);animation-timing-function:ease-out}66%{transform:translate(-15%,0) rotate(-9deg);animation-timing-function:cubic-bezier(.4,0,.3,1)}100%{transform:none}}
@keyframes gm-side-a{0%,23%{transform:none;animation-timing-function:cubic-bezier(.6,0,.9,.5)}34%{transform:translate(20%,0) scale(1.2);animation-timing-function:ease-out}44%{transform:translate(2%,0) scale(.96)}52%,100%{transform:none}}
@keyframes gm-side-b{0%,46%{transform:scaleX(-1);animation-timing-function:cubic-bezier(.6,0,.9,.5)}58%{transform:translate(-20%,0) scale(-1.2,1.2);animation-timing-function:ease-out}68%{transform:translate(-2%,0) scale(-.96,.96)}76%,100%{transform:scaleX(-1)}}
gm-art[data-gm=pull-swing].on>.h{animation:gm-pull-h 2s linear}
gm-art[data-gm=pull-swing].on>.a{animation:gm-pull-a 2s linear}
gm-art[data-gm=pull-swing].on>.b{animation:gm-pull-b 2s linear}
@keyframes gm-pull-h{0%{transform:none;animation-timing-function:cubic-bezier(.4,0,.6,1)}44%,52%{transform:translate(-17%,8%) rotate(-30deg);animation-timing-function:cubic-bezier(.7,0,.9,.4)}62%{transform:translate(15%,-12%) rotate(26deg);animation-timing-function:ease-out}70%{transform:translate(10%,-8%) rotate(16deg);animation-timing-function:ease-in-out}77%{transform:translate(12%,-10%) rotate(20deg);animation-timing-function:cubic-bezier(.4,0,.3,1)}100%{transform:none}}
@keyframes gm-pull-a{0%,52%{transform:none;animation-timing-function:cubic-bezier(.7,0,.9,.4)}62%{transform:translate(6%,-6%) scale(1.14);animation-timing-function:ease-out}70%{transform:translate(1%,-1%) scale(.97);animation-timing-function:ease-in-out}77%{transform:translate(2%,-2%) scale(1.03)}100%{transform:none}}
@keyframes gm-pull-b{0%{transform:scaleX(-1);animation-timing-function:cubic-bezier(.4,0,.6,1)}44%,52%{transform:translate(-16%,0) scale(-1.16,1.16);animation-timing-function:ease-in}62%{transform:translate(6%,0) scale(-.92,.92);animation-timing-function:ease-out}72%,100%{transform:scaleX(-1)}}
gm-art[data-gm=tilt-run].on>.h{animation:gm-tilt-h 1.8s linear}
gm-art[data-gm=tilt-run].on>.a{animation:gm-tilt-a 1.8s linear}
gm-art[data-gm=tilt-run].on>.b{animation:gm-tilt-b 1.8s linear}
@keyframes gm-tilt-h{0%{transform:none;animation-timing-function:cubic-bezier(.4,0,.2,1.3)}24%,34%{transform:translate(9%,0) rotate(21deg);animation-timing-function:cubic-bezier(.5,0,.2,1.2)}62%,72%{transform:translate(-9%,0) rotate(-21deg);animation-timing-function:cubic-bezier(.4,0,.3,1)}100%{transform:none}}
@keyframes gm-tilt-a{0%{transform:none;animation-timing-function:ease-out}24%{transform:translate(12%,6%) scale(1.22)}34%,100%{transform:none}}
@keyframes gm-tilt-b{0%,38%{transform:scaleX(-1);animation-timing-function:ease-out}62%{transform:translate(-12%,6%) scale(-1.22,1.22)}72%,100%{transform:scaleX(-1)}}
gm-art[data-gm=guard-flat].on>.h,gm-art[data-gm=guard-up].on>.h{animation:gm-guard-h 1.5s linear}
gm-art[data-gm=guard-flat].on>.a,gm-art[data-gm=guard-up].on>.a{animation:gm-guard-a 1.5s linear}
@keyframes gm-guard-h{0%{transform:none;animation-timing-function:cubic-bezier(.3,0,.2,1)}16%{transform:translate(0,3%) scale(.87);animation-timing-function:ease-in-out}38%{transform:translate(0,3%) scale(.9);animation-timing-function:ease-in-out}60%{transform:translate(0,3%) scale(.87);animation-timing-function:cubic-bezier(.5,0,.3,1)}74%{transform:scale(1.07);animation-timing-function:ease-in-out}86%{transform:scale(.98)}100%{transform:none}}
@keyframes gm-guard-a{0%{transform:none;animation-timing-function:cubic-bezier(.3,0,.2,1)}16%{transform:scale(1.16);animation-timing-function:ease-in-out}38%{transform:scale(1.12);animation-timing-function:ease-in-out}60%{transform:scale(1.16);animation-timing-function:cubic-bezier(.5,0,.3,1)}74%{transform:scale(.96);animation-timing-function:ease-in-out}86%{transform:scale(1.02)}100%{transform:none}}
gm-art[data-gm=tap].on>.h{animation:gm-tap-h 1.2s linear}
gm-art[data-gm=tap].on>.a{animation:gm-tap-a 1.2s linear}
@keyframes gm-tap-h{0%{transform:none;animation-timing-function:ease-in}12%{transform:translate(0,-2%) scale(1.04);animation-timing-function:cubic-bezier(.6,0,.9,.5)}20%{transform:translate(0,2%) scale(.9);animation-timing-function:ease-out}34%{transform:scale(1.05);animation-timing-function:ease-in-out}46%{transform:scale(.98)}58%,100%{transform:none}}
@keyframes gm-tap-a{0%{transform:none;animation-timing-function:ease-in}18%{transform:scale(.5);animation-timing-function:cubic-bezier(.2,.8,.3,1)}38%{transform:scale(1.24);animation-timing-function:ease-in-out}52%{transform:scale(.95)}64%,100%{transform:none}}
gm-art[data-gm=scan].on>.h{animation:gm-scan-h 1.9s linear}
gm-art[data-gm=scan].on>.a{animation:gm-scan-a 1.9s linear}
@keyframes gm-scan-h{0%{transform:none;animation-timing-function:ease-in-out}14%,20%{transform:translate(-9%,12%) scale(.8);animation-timing-function:cubic-bezier(.3,0,.2,1)}50%,58%{transform:translate(7%,-7%) scale(1.02);animation-timing-function:cubic-bezier(.6,0,.9,.5)}62%{transform:translate(7%,-7%) scale(.9);animation-timing-function:ease-out}70%{transform:translate(7%,-7%) scale(1.08);animation-timing-function:ease-in-out}78%{transform:translate(7%,-7%) scale(1.01);animation-timing-function:cubic-bezier(.4,0,.3,1)}100%{transform:none}}
@keyframes gm-scan-a{0%,58%{transform:none;animation-timing-function:cubic-bezier(.6,0,.9,.5)}63%{transform:scale(.9);animation-timing-function:ease-out}71%{transform:scale(1.14);animation-timing-function:ease-in-out}80%{transform:scale(.98)}88%,100%{transform:none}}
gm-art[data-gm=name].on>.h{animation:gm-name-h 1.9s linear}
gm-art[data-gm=name].on>.a{animation:gm-name-a 1.9s linear}
gm-art[data-gm=name].on>.b{animation:gm-name-b 1.9s linear}
gm-art[data-gm=name].on>.c{animation:gm-name-c 1.9s linear}
@keyframes gm-name-h{0%,14%{transform:none}18%{transform:translate(0,1.5%)}22%{transform:none}33%{transform:translate(0,1.5%)}37%{transform:none}48%{transform:translate(0,1.5%)}52%,100%{transform:none}}
@keyframes gm-name-a{0%{transform:none;animation-timing-function:ease-in}6%,14%{transform:scale(0);animation-timing-function:cubic-bezier(.2,.9,.3,1)}20%{transform:scale(1.5);animation-timing-function:ease-in-out}26%{transform:scale(.9)}31%,100%{transform:none}}
@keyframes gm-name-b{0%{transform:none;animation-timing-function:ease-in}6%,29%{transform:scale(0);animation-timing-function:cubic-bezier(.2,.9,.3,1)}35%{transform:scale(1.5);animation-timing-function:ease-in-out}41%{transform:scale(.9)}46%,100%{transform:none}}
@keyframes gm-name-c{0%{transform:none;animation-timing-function:ease-in}6%,44%{transform:scale(0);animation-timing-function:cubic-bezier(.2,.9,.3,1)}50%{transform:scale(1.5);animation-timing-function:ease-in-out}56%{transform:scale(.9)}61%,100%{transform:none}}

/* ---- the words follow the same order (teaching rows only; a match row keeps every cue fully readable) ---- */
.gg-moves.gm-seq .gm-cue>b,.mi-cues.gm-seq .gm-cue>b,.tv-moves.gm-seq .gm-cue>b,.tv-how.gm-seq .gm-cue>b,.help-moves.gm-seq .gm-cue h4{color:#5d7284;transition:color .18s}
.gg-moves.gm-seq .gm-cue.gm-now>b,.mi-cues.gm-seq .gm-cue.gm-now>b,.tv-moves.gm-seq .gm-cue.gm-now>b,.tv-how.gm-seq .gm-cue.gm-now>b,.help-moves.gm-seq .gm-cue.gm-now h4{color:#16324a}
.gg-moves.gm-seq .gm-cue>b,.mi-cues.gm-seq .gm-cue>b,.tv-how.gm-seq .gm-cue>b{font-weight:700}
.gg-moves.gm-seq .gm-cue.gm-now>b,.mi-cues.gm-seq .gm-cue.gm-now>b,.tv-how.gm-seq .gm-cue.gm-now>b{font-weight:900}

@media (prefers-reduced-motion:reduce){gm-art>gm-l{animation:none!important}}

/* ---- the first-time card steps aside while the athlete shows the move (guide-demo.js sets body.gm-demo) ---- */
@media (min-width:900px) and (min-aspect-ratio:16/10){
 body.gm-demo #game-hud .grip-guide{left:20.6%;scale:.78;transform-origin:0 0}
 body.gm-demo.gm-demo-right #game-hud .grip-guide{left:79.4%}
 body.gm-demo.gm-demo-split #game-hud .grip-guide{left:50%}
}

/* ---- round 7 part 3: pushing the screen (swipe). Phone held in one hand (h), the other hand's fingertip (a) slides
   over the screen, a white trail with a teal edge (c) follows it, a small arrow (b) shows the way. Layer boxes match
   the still pictures /ui/guide/swipe-*.webp (made from the same layers). The trail grows from where the finger starts
   and shrinks from its old end: it is a scale, never a fade. ---- */
gm-art{--gm-phone:url(/ui/guide/l/phone.webp);--gm-finger:url(/ui/guide/l/finger.webp);--gm-edge:3px}
gm-art.s{--gm-phone:url(/ui/guide/s/l/phone.webp);--gm-finger:url(/ui/guide/s/l/finger.webp);--gm-edge:2px}
gm-art[data-gm^=swipe]>.h{display:block;left:22%;top:4%;width:43%;height:92%;background-image:var(--gm-phone);z-index:0}
gm-art[data-gm^=swipe]>.c{display:block;left:40.5%;top:18%;width:7%;height:38%;box-sizing:border-box;border:var(--gm-edge) solid #239c9c;border-radius:999px;background:#fff;z-index:1}
gm-art[data-gm^=swipe]>.b{display:block;background-image:var(--gm-right);z-index:1}
gm-art[data-gm^=swipe]>.a{display:block;left:28.9%;top:18%;width:23.6%;height:42%;background-image:var(--gm-finger);transform-origin:64% 0;rotate:-25deg;z-index:2}
gm-art[data-gm=swipe-up]>.b{left:65.65%;top:20.35%;width:36%;height:23.3%;rotate:-90deg}
gm-art[data-gm=swipe-down]>.a{top:56%}
gm-art[data-gm=swipe-down]>.b{left:65.65%;top:36.35%;width:36%;height:23.3%;rotate:90deg}
gm-art[data-gm=swipe-side]>.a{left:41.9%;top:40%}
gm-art[data-gm=swipe-side]>.c{left:31%;top:36.5%;width:26%;height:7%}
gm-art[data-gm=swipe-side]>.b{left:66%;top:10%;width:30%;height:19.4%}
gm-art[data-gm=swipe-pull]>.a{top:16%}
gm-art[data-gm=swipe-pull]>.c{top:16%;height:41%}
gm-art[data-gm=swipe-pull]>.b{left:64%;top:4%;width:34%;height:28.8%;background-image:var(--gm-up)}

gm-art[data-gm=swipe-up].on>.a{animation:gm-sw-up-a 1.6s linear}
gm-art[data-gm=swipe-up].on>.c{animation:gm-sw-up-c 1.6s linear}
gm-art[data-gm=swipe-down].on>.a{animation:gm-sw-down-a 1.6s linear}
gm-art[data-gm=swipe-down].on>.c{animation:gm-sw-down-c 1.6s linear}
gm-art[data-gm=swipe-side].on>.a{animation:gm-sw-side-a 1.6s linear}
gm-art[data-gm=swipe-side].on>.c{animation:gm-sw-side-c 1.6s linear}
gm-art[data-gm^=swipe].on>.b{animation:gm-sw-b 1.6s linear}
gm-art[data-gm=swipe-pull].on>.a{animation:gm-sw-pull-a 2s linear}
gm-art[data-gm=swipe-pull].on>.c{animation:gm-sw-pull-c 2s linear}
gm-art[data-gm=swipe-pull].on>.b{animation:gm-sw-pull-b 2s linear}
/* lift the finger and take it back to the start, press (gather), slide fast past the end, settle */
@keyframes gm-sw-up-a{0%{translate:0 0;scale:1;animation-timing-function:ease-out}10%{translate:0 -5%;scale:1.06;animation-timing-function:ease-in-out}28%{translate:0 90.5%;scale:1.06;animation-timing-function:ease-out}36%{translate:0 96%;scale:.93;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%{translate:0 -9%;scale:.96;animation-timing-function:ease-out}58%{translate:0 3%;scale:1;animation-timing-function:ease-in-out}66%,100%{translate:0 0;scale:1}}
@keyframes gm-sw-down-a{0%{translate:0 0;scale:1;animation-timing-function:ease-out}10%{translate:0 5%;scale:1.06;animation-timing-function:ease-in-out}28%{translate:0 -90.5%;scale:1.06;animation-timing-function:ease-out}36%{translate:0 -96%;scale:.93;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%{translate:0 9%;scale:.96;animation-timing-function:ease-out}58%{translate:0 -3%;scale:1;animation-timing-function:ease-in-out}66%,100%{translate:0 0;scale:1}}
@keyframes gm-sw-side-a{0%{translate:0 0;scale:1;animation-timing-function:ease-out}10%{translate:5% -4%;scale:1.06;animation-timing-function:ease-in-out}28%{translate:-110% -4%;scale:1.06;animation-timing-function:ease-out}36%{translate:-118% 0;scale:.93;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%{translate:11% 0;scale:.96;animation-timing-function:ease-out}58%{translate:-4% 0;scale:1;animation-timing-function:ease-in-out}66%,100%{translate:0 0;scale:1}}
@keyframes gm-sw-up-c{0%{transform-origin:50% 0;scale:1 1;animation-timing-function:ease-in}12%{transform-origin:50% 0;scale:1 0}14%,36%{transform-origin:50% 100%;scale:1 0;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%,100%{transform-origin:50% 100%;scale:1 1}}
@keyframes gm-sw-down-c{0%{transform-origin:50% 100%;scale:1 1;animation-timing-function:ease-in}12%{transform-origin:50% 100%;scale:1 0}14%,36%{transform-origin:50% 0;scale:1 0;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%,100%{transform-origin:50% 0;scale:1 1}}
@keyframes gm-sw-side-c{0%{transform-origin:100% 50%;scale:1 1;animation-timing-function:ease-in}12%{transform-origin:100% 50%;scale:0 1}14%,36%{transform-origin:0 50%;scale:0 1;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%,100%{transform-origin:0 50%;scale:1 1}}
@keyframes gm-sw-b{0%{scale:1;animation-timing-function:ease-in-out}36%{scale:.86;animation-timing-function:cubic-bezier(.6,0,.9,.5)}50%{scale:1.16;animation-timing-function:ease-out}58%{scale:.97;animation-timing-function:ease-in-out}66%,100%{scale:1}}
/* bowling and golf: pull down slowly (the strength), then flick up */
@keyframes gm-sw-pull-a{0%{translate:0 0;scale:1;animation-timing-function:ease-out}8%{translate:0 -5%;scale:1.06;animation-timing-function:ease-in-out}20%{translate:0 42.9%;scale:1.06;animation-timing-function:ease-out}24%{translate:0 42.9%;scale:.93;animation-timing-function:ease-in-out}52%,56%{translate:0 97.6%;scale:.93;animation-timing-function:cubic-bezier(.6,0,.9,.5)}66%{translate:0 -9%;scale:.96;animation-timing-function:ease-out}73%{translate:0 3%;scale:1;animation-timing-function:ease-in-out}80%,100%{translate:0 0;scale:1}}
@keyframes gm-sw-pull-c{0%{transform-origin:50% 0;scale:1 1;animation-timing-function:ease-in}10%{transform-origin:50% 0;scale:1 0}12%,56%{transform-origin:50% 100%;scale:1 0;animation-timing-function:cubic-bezier(.6,0,.9,.5)}66%,100%{transform-origin:50% 100%;scale:1 1}}
@keyframes gm-sw-pull-b{0%{scale:1;animation-timing-function:ease-in-out}24%,56%{scale:.86;animation-timing-function:cubic-bezier(.6,0,.9,.5)}66%{scale:1.16;animation-timing-function:ease-out}73%{scale:.97;animation-timing-function:ease-in-out}80%,100%{scale:1}}

/* ---- big screen at quality step 3 and below (gm-still): every picture rests in its drawn pose ---- */
.gm-still gm-art>gm-l{animation:none!important}

/* ---- phone pad (#swipe-map): a faint fingertip slides the sport's main way, then rests. guide-motion.js adds it;
   controller.js names the sport (data-sport). Stops while a finger is on the pad (gm-touch), right after an input
   (gm-hold), on a disabled pad and whenever the map is hidden. ---- */
/* lengths in cqh (the pad's height): the same path on a 640px and an 844px phone, clear of the words in the middle */
.swipe-map:not([hidden]){container-type:size}
.swipe-map .sw-ghost{position:absolute;left:50%;top:82%;width:0;height:0;z-index:0}
.swipe-map[data-sport=chambara] .sw-ghost{left:calc(50% - 45px);top:74%;rotate:90deg}
.swipe-map[data-sport=bowling] .sw-ghost,.swipe-map[data-sport=golf] .sw-ghost{top:72%}
.swipe-map .sw-ghost>i{position:absolute;display:block}
.swipe-map .sw-ghost>.sw-d{left:-15px;top:-15px;width:30px;height:30px;border-radius:50%;background:#a6dcdf;scale:0;animation:sw-ghost-d 4.4s linear infinite}
.swipe-map .sw-ghost>.sw-t{left:-6px;top:-15cqh;width:12px;height:calc(15cqh + 6px);border-radius:999px;background:#7cc8cb;transform-origin:50% 100%;scale:1 0;animation:sw-ghost-t 4.4s linear infinite}
.swipe-map[data-sport=bowling] .sw-ghost>.sw-d,.swipe-map[data-sport=golf] .sw-ghost>.sw-d{animation-name:sw-ghost-pull-d}
.swipe-map[data-sport=bowling] .sw-ghost>.sw-t,.swipe-map[data-sport=golf] .sw-ghost>.sw-t{top:-14cqh;height:26cqh;animation-name:sw-ghost-pull-t}
.swipe-map[data-sport=chambara] .sw-ghost>.sw-d{animation-name:sw-ghost-side-d}
.swipe-map[data-sport=chambara] .sw-ghost>.sw-t{top:-90px;height:96px}
@keyframes sw-ghost-d{0%{translate:0 0;scale:0;animation-timing-function:cubic-bezier(.2,.9,.3,1.2)}6%{translate:0 0;scale:1;animation-timing-function:ease-in-out}13%{translate:0 6px;scale:.84;animation-timing-function:cubic-bezier(.6,0,.9,.5)}25%{translate:0 -16.5cqh;scale:.92;animation-timing-function:ease-out}31%{translate:0 -14.4cqh;scale:1;animation-timing-function:ease-in-out}37%{translate:0 -15cqh;scale:1;animation-timing-function:ease-in}45%,100%{translate:0 -15cqh;scale:0}}
@keyframes sw-ghost-side-d{0%{translate:0 0;scale:0;animation-timing-function:cubic-bezier(.2,.9,.3,1.2)}6%{translate:0 0;scale:1;animation-timing-function:ease-in-out}13%{translate:0 6px;scale:.84;animation-timing-function:cubic-bezier(.6,0,.9,.5)}25%{translate:0 -98px;scale:.92;animation-timing-function:ease-out}31%{translate:0 -86px;scale:1;animation-timing-function:ease-in-out}37%{translate:0 -90px;scale:1;animation-timing-function:ease-in}45%,100%{translate:0 -90px;scale:0}}
@keyframes sw-ghost-t{0%,13%{transform-origin:50% 100%;scale:1 0;animation-timing-function:cubic-bezier(.6,0,.9,.5)}25%{transform-origin:50% 100%;scale:1 1}31%{transform-origin:50% 0;scale:1 1;animation-timing-function:ease-in}43%,100%{transform-origin:50% 0;scale:1 0}}
@keyframes sw-ghost-pull-d{0%{translate:0 0;scale:0;animation-timing-function:cubic-bezier(.2,.9,.3,1.2)}6%{translate:0 0;scale:1;animation-timing-function:ease-in-out}26%,30%{translate:0 12cqh;scale:.84;animation-timing-function:cubic-bezier(.6,0,.9,.5)}40%{translate:0 -16cqh;scale:.92;animation-timing-function:ease-out}45%{translate:0 -13cqh;scale:1;animation-timing-function:ease-in-out}50%{translate:0 -14cqh;scale:1;animation-timing-function:ease-in}57%,100%{translate:0 -14cqh;scale:0}}
@keyframes sw-ghost-pull-t{0%,30%{transform-origin:50% 100%;scale:1 0;animation-timing-function:cubic-bezier(.6,0,.9,.5)}40%{transform-origin:50% 100%;scale:1 1}45%{transform-origin:50% 0;scale:1 1;animation-timing-function:ease-in}55%,100%{transform-origin:50% 0;scale:1 0}}
.gm-touch .swipe-map .sw-ghost>i,.gm-hold .swipe-map .sw-ghost>i,.action-button:disabled .swipe-map .sw-ghost>i,.action-button.flash .swipe-map .sw-ghost>i{animation:none;scale:0}

/* ---- the phone's "밀어야 세게 나가요" plate (a tap that was not a push): a short teal stroke grows upward once ---- */
.swipe-skill.note::after{content:'';display:block;width:12px;height:30px;margin:6px auto 0;border-radius:999px;background:#239c9c;transform-origin:50% 100%;animation:sw-nudge .9s cubic-bezier(.3,0,.2,1) both}
@keyframes sw-nudge{0%{scale:1 .15;translate:0 6px}40%{scale:1 1.12;translate:0 -4px}62%{scale:1 .96;translate:0 0}78%,100%{scale:1 1;translate:0 0}}
@media (prefers-reduced-motion:reduce){.swipe-map .sw-ghost{display:none}.swipe-skill.note::after{animation:none}}
