/* Part 126: the two-skis mark, in motion, and the loading screens it opens on.
   The mark is drawn by skis126.js. Each ski is turned by CSS here (the same 26 degrees as its own transform), so a
   movement can swing it and always comes back to the mark. The cut round the front ski moves with it. */
.s26-skis{display:block;overflow:visible}
.s26-skis .s26-ski,.s26-skis .s26-cut,.s26-skis .s26-skis-pair{transform-box:view-box;transform-origin:80px 80px}
.s26-skis .s26-ski-b{transform:rotate(26deg)}
.s26-skis .s26-ski-w,.s26-skis .s26-cut{transform:rotate(-26deg)}

/* In: the pair stands together, then opens into the cross with a small overshoot. */
@keyframes s26InB{0%{transform:translateX(7px) rotate(0);opacity:0}28%{transform:translateX(7px) rotate(0);opacity:1}72%{transform:rotate(30deg)}100%{transform:rotate(26deg)}}
@keyframes s26InW{0%{transform:translateX(-7px) rotate(0);opacity:0}28%{transform:translateX(-7px) rotate(0);opacity:1}72%{transform:rotate(-30deg)}100%{transform:rotate(-26deg)}}
@keyframes s26InCut{0%,28%{transform:translateX(-7px) rotate(0)}72%{transform:rotate(-30deg)}100%{transform:rotate(-26deg)}}
@keyframes s26Drop{0%{transform:translateY(-14px) scale(.92)}60%{transform:translateY(2px) scale(1.02)}100%{transform:none}}
.s26-skis-in .s26-skis-pair{animation:s26Drop 1s .1s cubic-bezier(.2,.9,.3,1) both}
.s26-skis-in .s26-ski-b{animation:s26InB 1.05s .1s cubic-bezier(.3,.9,.3,1) both}
.s26-skis-in .s26-ski-w{animation:s26InW 1.05s .1s cubic-bezier(.3,.9,.3,1) both}
.s26-skis-in .s26-cut{animation:s26InCut 1.05s .1s cubic-bezier(.3,.9,.3,1) both}

/* Snap: a quick scissor and back, for a hover, a page change or a moment worth marking. */
@keyframes s26SnapB{0%,100%{transform:rotate(26deg)}40%{transform:rotate(36deg)}}
@keyframes s26SnapW{0%,100%{transform:rotate(-26deg)}40%{transform:rotate(-36deg)}}
.s26-snap .s26-ski-b,.brand:hover .s26-ski-b{animation:s26SnapB .5s cubic-bezier(.3,1.5,.5,1)}
.s26-snap .s26-ski-w,.s26-snap .s26-cut,.brand:hover .s26-ski-w,.brand:hover .s26-cut{animation:s26SnapW .5s cubic-bezier(.3,1.5,.5,1)}
/* Spin: the pair turning, as a loading mark inside the app. */
@keyframes s26Spin{to{transform:rotate(360deg)}}
.s26-skis-spin .s26-skis-pair{animation:s26Spin 1.4s cubic-bezier(.6,.1,.3,.9) infinite}
/* Out: the skis swing wide as the loading screen lifts. */
@keyframes s26OutB{to{transform:rotate(64deg);opacity:0}}
@keyframes s26OutW{to{transform:rotate(-64deg);opacity:0}}
.boot-complete .s26-skis-in .s26-ski-b{animation:s26OutB .55s cubic-bezier(.5,0,.8,.4) forwards}
.boot-complete .s26-skis-in .s26-ski-w,.boot-complete .s26-skis-in .s26-cut{animation:s26OutW .55s cubic-bezier(.5,0,.8,.4) forwards}

/* The masthead: the mark itself, no tile, opening into its cross once the game is up. */
.brand .brand-skier-mark{display:grid;place-items:center;border-radius:0!important;box-shadow:none!important;background:none;overflow:visible}
.brand .brand-skier-mark .s26-skis{width:100%;height:100%;filter:drop-shadow(0 3px 8px #0008)}
.s26-ready .s26-skis-head .s26-skis-pair{animation:s26Drop .9s .15s cubic-bezier(.2,.9,.3,1) both}
.s26-ready .s26-skis-head .s26-ski-b{animation:s26InB 1s .15s cubic-bezier(.3,.9,.3,1) both}
.s26-ready .s26-skis-head .s26-ski-w{animation:s26InW 1s .15s cubic-bezier(.3,.9,.3,1) both}
.s26-ready .s26-skis-head .s26-cut{animation:s26InCut 1s .15s cubic-bezier(.3,.9,.3,1) both}
.s26-ready .brand:hover .s26-ski-b{animation:s26SnapB .5s cubic-bezier(.3,1.5,.5,1)}
.s26-ready .brand:hover .s26-ski-w,.s26-ready .brand:hover .s26-cut{animation:s26SnapW .5s cubic-bezier(.3,1.5,.5,1)}

/* Loading screens: a picture from loadart126.js fills the screen. Light pictures take dark ink. */
.boot-screen{--boot-ink:#f2f7fb}
.boot-scene{position:absolute;inset:0;overflow:hidden;background:#091624}
.boot-scene .ld-art,.boot-scene .ld-poster{position:absolute;inset:0;width:100%;height:100%;display:block}
.boot-scene .ld-poster{object-fit:cover;object-position:62% center}
@keyframes ldZoom{from{transform:scale(1.06)}to{transform:none}}
.boot-scene>*{animation:ldZoom 9s cubic-bezier(.2,.6,.3,1) both}
.boot-mark{display:block;width:clamp(72px,10vw,136px);aspect-ratio:1;margin-bottom:-4px}
.boot-mark .s26-skis{width:100%;height:100%;filter:drop-shadow(0 10px 24px #0007)}
.boot-logo .bw-slope{fill:var(--boot-ink)}
.boot-screen[data-ink=dark]{--boot-ink:#091624;background:#eef5fb}
.boot-screen[data-ink=dark] .boot-scrim{background:none}
.boot-screen[data-ink=light]:not([data-art=poster]) .boot-scrim{background:linear-gradient(90deg,#06102a73,transparent 55%)}
.boot-screen[data-ink=dark] .boot-logo{filter:none}
.boot-screen[data-ink=dark] .boot-mark .s26-skis{filter:drop-shadow(0 8px 18px #0916242e)}
.boot-screen[data-ink=dark] .boot-mark .s26-ski-w path:first-child{fill:#091624}
.boot-screen[data-ink=dark] .boot-mark .s26-ski-b path:last-child{fill:#fff}
.boot-screen[data-ink=dark] .boot-content .boot-tagline{background:linear-gradient(90deg,#c63b62,#e2662a);-webkit-background-clip:text;background-clip:text;filter:none}
.boot-screen[data-ink=dark] .boot-foot{background:linear-gradient(0deg,#ffffffeb,#ffffffa6 58%,#fff0)}
.boot-screen[data-ink=dark] .boot-tip{color:#0f2236}
.boot-screen[data-ink=dark] .boot-tip b{color:#1f7fd0}
.boot-screen[data-ink=dark] .boot-progress{color:#33475c}
.boot-screen[data-ink=dark] .boot-progress b{color:#091624}
.boot-screen[data-ink=dark] .boot-track{background:#0916241f}
.boot-screen[data-ink=dark] .boot-meta{color:#09162499}
.boot-screen[data-ink=dark] .boot-snow{opacity:.55}

/* One slow movement per picture. */
@keyframes ldDraw{to{stroke-dashoffset:0}}
@keyframes ldFadeIn{from{opacity:0}}
@keyframes ldFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes ldRise{from{transform:translateY(46px);opacity:.6}}
@keyframes ldPuff{from{transform:scale(.7);opacity:0}}
@keyframes ldTwinkle{50%{opacity:.15}}
@keyframes ldSnow{from{transform:translate(-12px,-26px)}to{transform:translate(12px,26px)}}
@keyframes ldRide{from{transform:translate(-300px,191.8px)}}
.ld-draw{stroke-dasharray:2600;stroke-dashoffset:2600;animation:ldDraw 2.8s .35s cubic-bezier(.3,.6,.2,1) forwards}
.ld-fade{animation:ldFadeIn 2.4s .3s both}
.ld-float{animation:ldFloat 4.2s ease-in-out infinite}
.ld-rise{animation:ldRise 4s cubic-bezier(.2,.7,.3,1) both}
.ld-spray{transform-origin:1010px 640px;animation:ldPuff 1.6s .2s cubic-bezier(.2,.8,.3,1) both}
.ld-stars .tw{animation:ldTwinkle 2.6s ease-in-out infinite}
.ld-ride{animation:ldRide 9s linear infinite}
.ld-snow{animation:ldSnow 7s ease-in-out infinite alternate}

@media (prefers-reduced-motion:reduce){
  .s26-skis *,.boot-scene>*,.ld-draw,.ld-fade,.ld-float,.ld-rise,.ld-spray,.ld-stars .tw,.ld-ride,.ld-snow{animation:none!important}
  .ld-draw{stroke-dashoffset:0}
}

/* The mark at the moment a run starts: over DROP IN on a solo run and over GO in a real round, opening into its cross. */
.run-count-mark{display:block;width:clamp(54px,6vw,84px);aspect-ratio:1;opacity:0;margin-bottom:-6px}
.run-count.go .run-count-mark{opacity:1}
.run-count-mark .s26-skis,.race-start-mark .s26-skis{width:100%;height:100%;filter:drop-shadow(0 8px 24px #0009)}
.race-start-mark{display:block;width:clamp(60px,7vw,96px);aspect-ratio:1;margin:0 auto -4px}
