.crossing{position:fixed;inset:0;z-index:10;pointer-events:none;overflow:hidden;visibility:hidden;isolation:isolate}
.crossing-in,.crossing-out{visibility:visible;pointer-events:auto}
.crossing i{position:absolute;display:block;pointer-events:none}
.crossing-in i{animation-duration:var(--entry);animation-timing-function:cubic-bezier(.55,.02,.6,.95);animation-fill-mode:both}
.crossing-out i{animation-duration:var(--exit);animation-timing-function:var(--ease);animation-fill-mode:both}
.crossing-needle i:nth-child(-n+2){
  inset:0 auto 0 0;width:50.3%;
  background:repeating-linear-gradient(128deg,#344c43 0 2px,#2d453a 2px 6px),#2b433a;
  border:3px dashed #d1b99c;
}
.crossing-needle i:nth-child(2){inset:0 0 0 auto}
.crossing-needle.crossing-in i:first-child{animation-name:seam-left-in}
.crossing-needle.crossing-in i:nth-child(2){animation-name:seam-right-in}
.crossing-needle.crossing-out i:first-child{animation-name:seam-left-out}
.crossing-needle.crossing-out i:nth-child(2){animation-name:seam-right-out}
@keyframes seam-left-in{from{transform:translateX(-105%)}to{transform:translateX(0)}}
@keyframes seam-right-in{from{transform:translateX(105%)}to{transform:translateX(0)}}
@keyframes seam-left-out{from{transform:translateX(0)}to{transform:translateX(-105%)}}
@keyframes seam-right-out{from{transform:translateX(0)}to{transform:translateX(105%)}}
.crossing-lantern i:nth-child(-n+2){
  inset:-5% auto -5% -3%;width:55%;
  background:linear-gradient(270deg,#b77d50 0 3px,transparent 3px),repeating-linear-gradient(90deg,#300d1d,#762b35 11%,#3c1121 22%);
  box-shadow:8px 0 45px #150b14a6;transform-origin:0 0;
}
.crossing-lantern i:nth-child(2){inset:-5% -3% -5% auto;background:linear-gradient(90deg,#b77d50 0 3px,transparent 3px),repeating-linear-gradient(90deg,#300d1d,#762b35 11%,#3c1121 22%);transform-origin:100% 0}
.crossing-lantern.crossing-in i:first-child{animation-name:curtain-left-in}
.crossing-lantern.crossing-in i:nth-child(2){animation-name:curtain-right-in}
.crossing-lantern.crossing-out i:first-child{animation-name:curtain-left-out}
.crossing-lantern.crossing-out i:nth-child(2){animation-name:curtain-right-out}
@keyframes curtain-left-in{from{transform:translateX(-102%) skewY(-13deg)}to{transform:translateX(0) skewY(0)}}
@keyframes curtain-right-in{from{transform:translateX(102%) skewY(13deg)}to{transform:translateX(0) skewY(0)}}
@keyframes curtain-left-out{from{transform:translateX(0) skewY(0)}to{transform:translateX(-104%) skewY(11deg)}}
@keyframes curtain-right-out{from{transform:translateX(0) skewY(0)}to{transform:translateX(104%) skewY(-11deg)}}
.crossing-north i:first-child{inset:0;background:linear-gradient(122deg,#092431 20%,#c2ffec 41%,#2a867e 49%,#092431 65%);background-size:220% 140%}
.crossing-north.crossing-in i:first-child{animation-name:wave-in}
.crossing-north.crossing-out i:first-child{animation-name:wave-out}
@keyframes wave-in{from{clip-path:polygon(0 0,0 0,-20% 100%,0 100%);background-position:100% 50%}to{clip-path:polygon(0 0,125% 0,105% 100%,0 100%);background-position:50% 50%}}
@keyframes wave-out{from{clip-path:polygon(0 0,100% 0,100% 100%,-20% 100%);background-position:50% 50%}to{clip-path:polygon(125% 0,125% 0,105% 100%,105% 100%);background-position:0 50%}}
.crossing-north.crossing-reverse{transform:scaleX(-1)}
.crossing-folio{perspective:1200px}
.crossing-folio i:first-child{inset:-10% -15%;background:linear-gradient(102deg,#a79475,#ede0bf 24%,#ffefd1 56%,#ab977c);transform-origin:right center;box-shadow:-15px 0 40px #291a1bb3}
.crossing-folio.crossing-in i:first-child{animation-name:folio-in}
.crossing-folio.crossing-out i:first-child{animation-name:folio-out}
.crossing-folio.crossing-reverse{transform:scaleX(-1)}
@keyframes folio-in{from{transform:rotateY(-106deg) translateX(70%)}to{transform:rotateY(0) translateX(0)}}
@keyframes folio-out{from{transform:rotateY(0) translateX(0);transform-origin:left center}to{transform:rotateY(105deg) translateX(-70%);transform-origin:left center}}
.crossing-clock i:first-child{inset:-1px;background:#152d2a;mask-image:radial-gradient(circle,transparent var(--iris,0%),#000 calc(var(--iris,0%) + 2%));background-image:repeating-conic-gradient(from 12deg at center,#1e413a 0deg 39deg,#946f4d 40deg 41deg)}
@property --iris{syntax:"<percentage>";initial-value:0%;inherits:false}
.crossing-clock.crossing-in i:first-child{animation-name:iris-close}
.crossing-clock.crossing-out i:first-child{animation-name:iris-open}
@keyframes iris-close{from{--iris:75%;transform:rotate(-10deg) scale(1.16)}to{--iris:-2%;transform:rotate(0) scale(1.14)}}
@keyframes iris-open{from{--iris:-2%;transform:rotate(0) scale(1.14)}to{--iris:77%;transform:rotate(10deg) scale(1.22)}}

.game .crossing{position:absolute}
.crossing-glass i{inset:-5%;background:linear-gradient(142deg,#0d2e2d 18%,#176e73 53%,#854459 79%);border:1px solid #c8e1b3}
.crossing-glass i:first-child{clip-path:polygon(0 0,88% 0,44% 48%,0 68%)}
.crossing-glass i:nth-child(2){clip-path:polygon(0 68%,44% 48%,100% 63%,100% 100%,0 100%);background:linear-gradient(20deg,#123958,#306767 62%,#c38256)}
.crossing-glass i:nth-child(3){clip-path:polygon(88% 0,100% 0,100% 64%,44% 48%);background:linear-gradient(120deg,#163a48,#ae8760 78%,#3a1833)}
.crossing-glass.crossing-in i:first-child{animation-name:glass-top-in}
.crossing-glass.crossing-in i:nth-child(2){animation-name:glass-base-in}
.crossing-glass.crossing-in i:nth-child(3){animation-name:glass-east-in}
.crossing-glass.crossing-out i:first-child{animation-name:glass-top-out}
.crossing-glass.crossing-out i:nth-child(2){animation-name:glass-base-out}
.crossing-glass.crossing-out i:nth-child(3){animation-name:glass-east-out}
@keyframes glass-top-in{from{transform:translate(-45%,-85%)}to{transform:none}}
@keyframes glass-base-in{from{transform:translate(-24%,95%)}to{transform:none}}
@keyframes glass-east-in{from{transform:translate(80%,-33%)}to{transform:none}}
@keyframes glass-top-out{from{transform:none}to{transform:translate(-58%,-87%)}}
@keyframes glass-base-out{from{transform:none}to{transform:translate(-32%,96%)}}
@keyframes glass-east-out{from{transform:none}to{transform:translate(86%,-40%)}}
.crossing-post{perspective:900px}
.crossing-post i:first-child{inset:0;background:linear-gradient(150deg,#cdb89c,#fbecd2 68%,#d0bc9a);transform-origin:50% 100%}
.crossing-post i:nth-child(2){inset:0;background:#f5e5c8;clip-path:polygon(0 0,100% 0,50% 62%);transform-origin:50% 0;filter:drop-shadow(0 6px 4px #5b402c77)}
.crossing-post.crossing-in i:first-child{animation-name:post-base-in}
.crossing-post.crossing-in i:nth-child(2){animation-name:post-flap-in}
.crossing-post.crossing-out i:first-child{animation-name:post-base-out}
.crossing-post.crossing-out i:nth-child(2){animation-name:post-flap-out}
@keyframes post-base-in{from{transform:translateY(108%) rotateX(-14deg)}to{transform:none}}
@keyframes post-flap-in{from{transform:rotateX(98deg)}to{transform:none}}
@keyframes post-base-out{from{transform:none}to{transform:translateY(110%) rotateX(-14deg)}}
@keyframes post-flap-out{from{transform:none}to{transform:rotateX(100deg)}}
