/* The existing windows become moving parts of the same little fairground. */
body[data-lpv-ready] [data-lpv-motion="window"]{
  --lpv-angle:2.4deg;--lpv-rise:15px;--lpv-time:6.8s;--lpv-delay:0s;
  transform-origin:50% 55%;
  animation:lpv-window var(--lpv-time) ease-in-out var(--lpv-delay) infinite!important;
  animation-play-state:paused!important;
  backface-visibility:hidden;
}
body[data-lpv-ready] [data-lpv-motion="window"][data-lpv-visible="true"]{animation-play-state:running!important}
body[data-lpv-ready] [data-lpv-motion="window"]:is(:hover,:focus-within,[data-lpv-rest="true"]){
  animation-play-state:paused!important;
}
body[data-lpv-ready] [data-lpv-motion="window"]:focus-visible{outline-offset:6px}
/* The round windows breathe, the film's controls stay within their frame. */
body[data-lpv-ready] .park-machine{--lpv-time:5.4s}
body[data-lpv-ready] .park-machine.activated{box-shadow:12px 14px 0 #143c4c30}
body[data-lpv-ready] :is(.launch-product,.didacta-card,.officina-panel,.park-stage){--lpv-time:8.4s}
body[data-lpv-ready] :is(.product-film__player,.home-film-player){--lpv-time:7.6s}
body[data-lpv-ready] .album-rail{padding-block:31px 39px}
body[data-lpv-ready] :is(.service-grid,.product-benefits,.product-steps,.adventure-grid,.history-grid){row-gap:42px}
body[data-lpv-ready] .hero-benefits{padding-block:8px}
body[data-lpv-ready] .hero-benefits>span{
  display:inline-block;animation:lpv-ticket 4.8s ease-in-out infinite;
  transform-origin:20% 70%;
}
body[data-lpv-ready] .hero-benefits>span:nth-child(2){animation-delay:-1.6s}
body[data-lpv-ready] .hero-benefits>span:nth-child(3){animation-delay:-3.2s}
body[data-lpv-ready] .hero-benefits:hover>span{animation-play-state:paused}
body[data-lpv-ready] .park-route{padding-block:16px}
body[data-lpv-ready] .park-route span>b{display:inline-block;animation:lpv-route-star 3.6s ease-in-out infinite}
body[data-lpv-ready] .park-route span:nth-of-type(2)>b{animation-delay:-.9s}
body[data-lpv-ready] .park-route span:nth-of-type(3)>b{animation-delay:-1.8s}
body[data-lpv-ready] .park-route span:nth-of-type(4)>b{animation-delay:-2.7s}
body[data-lpv-ready] .park-route i{animation-duration:9s}
body[data-lpv-ready] .values-strip b{animation-duration:5s}
body[data-lpv-ready] .values-strip b:nth-of-type(even){animation-direction:reverse}
body[data-lpv-ready] :is(.service-sticker,.pill){display:inline-block;animation:lpv-badge 4.4s ease-in-out infinite;transform-origin:30% 50%}
body[data-lpv-ready] .method-grid .step-no{animation:lpv-step-wheel 6s ease-in-out infinite}
body[data-lpv-ready] .method-grid article:nth-child(2) .step-no{animation-delay:-1.5s}
body[data-lpv-ready] .method-grid article:nth-child(3) .step-no{animation-delay:-3s}
body[data-lpv-ready] .method-grid article:nth-child(4) .step-no{animation-delay:-4.5s}
body[data-lpv-ready] .method-grid article:hover .step-no{animation-play-state:paused}
body[data-lpv-ready] :is(.service-illustration img,.officina-visual img,.footer-art img,.faq-illustration,.community-scene img){animation:lpv-figure 4.5s ease-in-out infinite!important}
body[data-lpv-ready] :is(.service-card:nth-child(2) .service-illustration img,.footer-art img:nth-child(2),.officina-visual img:nth-child(2)){animation-delay:-1.5s!important}
body[data-lpv-ready] :is(.service-card:nth-child(3) .service-illustration img,.footer-art img:nth-child(3)){animation-delay:-3s!important}
body[data-lpv-ready] :is(.footer-art,.officina-visual,.community-scene):hover img{animation-play-state:paused!important}
body[data-lpv-ready] [data-lpv-look]{translate:var(--lpv-look-x,0px) var(--lpv-look-y,0px);transition:translate .28s ease-out}
/* Keep the visual game readable during interaction, media playback and pauses. */
body[data-lpv-ready][data-lpv-video="playing"] *,
body[data-lpv-ready][data-lpv-video="playing"] *::before,
body[data-lpv-ready][data-lpv-video="playing"] *::after,
body[data-lpv-ready][data-lpv-hidden="true"] *,
body[data-lpv-ready][data-motion="paused"] *,
body[data-lpv-ready][data-motion="paused"] *::before,
body[data-lpv-ready][data-motion="paused"] *::after,
body[data-lpv-ready]:is([data-lpv-video="playing"],[data-lpv-hidden="true"],[data-motion="paused"]) [data-lpv-motion="window"]{animation-play-state:paused!important}
body[data-lpv-ready][data-motion="paused"] [data-lpv-look],
body[data-lpv-ready][data-lpv-video="playing"] [data-lpv-look]{translate:0 0!important;transition:none!important}
@keyframes lpv-window{
  0%,100%{rotate:calc(var(--lpv-angle)*-1);translate:0 0}
  26%{rotate:0deg;translate:0 calc(var(--lpv-rise)*-.45)}
  50%{rotate:var(--lpv-angle);translate:0 calc(var(--lpv-rise)*-1)}
  76%{rotate:0deg;translate:0 calc(var(--lpv-rise)*-.35)}
}
@keyframes lpv-ticket{0%,100%{rotate:-2deg;translate:0 0}50%{rotate:2deg;translate:0 -9px}}
@keyframes lpv-route-star{0%,100%{rotate:0deg;translate:0 0;scale:1}40%{rotate:80deg;translate:0 -5px;scale:1.2}70%{rotate:150deg;translate:0 1px;scale:.95}}
@keyframes lpv-badge{0%,100%{rotate:-5deg;translate:0 0}50%{rotate:6deg;translate:0 -8px}}
@keyframes lpv-step-wheel{0%,100%{rotate:-9deg;translate:0 0}50%{rotate:12deg;translate:0 -13px}}
@keyframes lpv-figure{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-19px) rotate(6deg)}}
@media(max-width:600px){
  body[data-lpv-ready] .park-route{gap:11px;padding-inline:10px}
  body[data-lpv-ready] .hero-benefits{row-gap:18px}
  body[data-lpv-ready] :is(.service-grid,.product-benefits,.product-steps,.adventure-grid,.history-grid){row-gap:33px}
}
@media(prefers-reduced-motion:reduce){
  body[data-lpv-ready] *,body[data-lpv-ready] *::before,body[data-lpv-ready] *::after{animation:none!important;transition:none!important}
  body[data-lpv-ready] :is([data-lpv-motion="window"],.hero-benefits>span,.park-route span>b,.park-route i,.values-strip b,.service-sticker,.pill,.method-grid .step-no,.service-illustration img,.officina-visual img,.footer-art img,.faq-illustration,.community-scene img){animation:none!important;transition:none!important}
  body[data-lpv-ready] [data-lpv-motion="window"]{rotate:0deg!important;translate:0 0!important}
  body[data-lpv-ready] [data-lpv-look]{translate:0 0!important}
}
