/* MEDAL-inspired motion, translated into the school's first step. */
:root{--entry-duration:2050ms;--polish-ease:cubic-bezier(.16,1,.3,1)}
.entry-prelude{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#fafaf1;pointer-events:none;opacity:0}
.gym-preparing .entry-prelude{opacity:1}
.entry-court{position:absolute;inset:12% 8%;width:84%;height:76%;stroke:#185a42;stroke-width:1.2;opacity:.13}
.entry-court rect,.entry-court path,.entry-court circle{stroke-dasharray:1;stroke-dashoffset:1}
.gym-preparing .entry-court rect,.gym-preparing .entry-court path,.gym-preparing .entry-court circle{animation:courtDraw 950ms var(--polish-ease) both}
.entry-brand{position:relative;display:flex;align-items:center;flex-direction:column;width:min(440px,66%);margin-top:-80px}
.entry-brand>img{display:block;width:100%;height:auto}
.entry-ball-floor{position:relative;margin-top:32px;width:56px;height:82px}
.entry-ball{position:absolute;top:0;width:48px;height:48px;left:4px;transform-origin:50% 100%}
.entry-ball-shadow{position:absolute;bottom:4px;left:4px;width:48px;height:7px;border-radius:50%;background:#185a421b}
.gym-preparing .entry-ball{animation:schoolBallBounce 760ms cubic-bezier(.36,0,.66,1) infinite}
.gym-preparing .entry-ball-shadow{animation:ballShadow 760ms ease-in-out infinite}
.entry-load-label{font-family:'Klee One',sans-serif;font-size:clamp(18px,2vw,24px);font-weight:600;color:var(--green);margin-top:10px;line-height:1.5;text-align:center}
.gym-opening .entry-prelude{opacity:1;animation:preludeOpen 440ms var(--polish-ease) both}
.gym-entering .gym-doorway,.gym-entering .gym-entrance,.gym-entering .entry-thought,.gym-entering .entry-welcome,.gym-entering .entry-small{animation-duration:var(--entry-duration)}
.gym-entering .gym-doorway{animation-name:schoolCameraIn;transform-origin:50% 52%}
.gym-entering .entry-thought{animation-name:schoolFirstFeeling;background:none;color:white;padding:0;text-shadow:0 2px 18px #123223aa}
.gym-entering .entry-welcome{animation-name:schoolWelcome}
.gym-entering .hero-photo{animation-delay:1450ms;animation-duration:600ms}
.gym-entering .hero-bottom{animation-delay:1700ms;animation-duration:350ms}
.entry-welcome{font-family:'Klee One',sans-serif;font-weight:600}
.entry-skip{z-index:4}
@keyframes courtDraw{to{stroke-dashoffset:0}}
@keyframes schoolBallBounce{0%,100%{transform:translateY(28px) scale(1.12,.86)}45%,55%{transform:translateY(-15px) scale(.96,1.04)}}
@keyframes ballShadow{0%,100%{transform:scaleX(1);opacity:1}50%{transform:scaleX(.5);opacity:.4}}
@keyframes preludeOpen{from{clip-path:inset(0% 0% 0% 0%);opacity:1}to{clip-path:inset(0% 0% 100% 0%);opacity:1}}
@keyframes schoolCameraIn{0%{transform:scale(1);opacity:1}25%{opacity:1}78%{transform:scale(1.8);opacity:1}100%{transform:scale(2.2);opacity:0}}
@keyframes schoolFirstFeeling{0%,12%{opacity:1;transform:translateY(0)}30%,100%{opacity:0;transform:translateY(-12px)}}
@keyframes schoolWelcome{0%,28%{opacity:0;transform:translateY(18px)}43%,82%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-8px)}}
/* The CTA keeps its yellow identity; only the circular arrow grows. */
.trial-button{isolation:isolate;position:relative;overflow:hidden;gap:16px}
.trial-button .cta-arrow{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--green);color:var(--yellow);font-size:24px;line-height:1;transition:transform 350ms var(--polish-ease),background-color 350ms ease}
.trial-button:focus-visible .cta-arrow{transform:translateX(4px) scale(1.12)}
.trial-button:active .cta-arrow{transform:translateX(5px) scale(.95)}
@media(hover:hover) and (pointer:fine){.trial-button:hover .cta-arrow{transform:translateX(4px) scale(1.16);background:#237957}}
.motion-steps>li{position:relative}
.motion-steps>li:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--green);transform:scaleX(0);transform-origin:left;transition:transform 680ms var(--polish-ease);pointer-events:none}
.motion-steps>li.step-arrived:before{transform:scaleX(1)}
.motion-steps .pr-step-top>span{transition:background-color 400ms ease,color 400ms ease,transform 500ms var(--polish-ease)}
.motion-steps .step-arrived .pr-step-top>span{background:var(--green);color:var(--yellow);transform:translateY(-2px)}
@media(max-width:700px){.entry-brand{width:72%;margin-top:-160px}.entry-court{inset:7% 4%;width:92%;height:78%}.entry-ball-floor{margin-top:22px}.entry-load-label{font-size:19px}.trial-button .cta-arrow{flex-basis:30px;width:30px;height:30px;font-size:22px}.motion-steps>li:before{top:0;bottom:0;right:auto;width:3px;height:auto;transform:scaleY(0);transform-origin:top}.motion-steps>li.step-arrived:before{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.entry-prelude{display:none!important}.motion-steps>li:before{transform:none}.trial-button .cta-arrow{transform:none!important}}
.motion-steps .pr-step-top>span{display:inline-grid;place-items:center;min-width:48px;height:48px;border-radius:50%;background:#e9eee2;color:var(--green)}
.last-copy .trial-button .cta-arrow{background:var(--yellow);color:var(--green)}
@media(max-width:700px){.motion-steps .pr-step-top>span{min-width:42px;height:42px}}
@media(max-width:700px){.motion-steps>li{padding-left:12px}}
/* Keep skip within the first screen even when the hero is taller than the phone. */
.entry-skip{top:20px;bottom:auto;right:25px}
@media(max-width:700px){.entry-skip{top:16px;right:16px}}
.trial-button:before{content:'';position:absolute;z-index:-1;right:20px;top:50%;width:40px;height:40px;border-radius:50%;background:var(--green);transform:translateY(-50%) scale(0);transition:transform 520ms var(--polish-ease);pointer-events:none}
.trial-button{transition:transform 220ms var(--motion-return),box-shadow 200ms ease,color 300ms ease}
.trial-button:focus-visible:before,.trial-button:active:before{transform:translateY(-50%) scale(22)}
.trial-button:focus-visible,.trial-button:active{color:white}
.last-copy .trial-button:before{background:var(--yellow)}
.last-copy .trial-button:focus-visible,.last-copy .trial-button:active{color:var(--green)}
@media(hover:hover) and (pointer:fine){.trial-button:hover:before{transform:translateY(-50%) scale(22)}.trial-button:hover{color:white}.last-copy .trial-button:hover{color:var(--green)}}
