/* The arrival uses the same stage, actor scale and feet as the cathedral idle. */
.arrival-rift,.arrival-sign,.arrival-replay {display:none;}
.party-present .arrival-replay {
  display:block;position:absolute;z-index:4;right:max(12px,calc((100% - var(--width)) / 2));top:10px;
  padding:4px 8px 4px 9px;border:1px solid #87694394;border-radius:2px;background:#191611e6;
  color:#ead6b5;font:600 12px/1.4 Barlow,Arial,sans-serif;letter-spacing:.025em;
}
.arrival-replay::before {content:'↻';margin-right:5px;color:#dcb47d;font-size:14px;line-height:1;vertical-align:-1px;}
.arrival-playing .arrival-replay::before,.arrival-still .arrival-replay::before {content:'›';}
.arrival-caption {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;}
.arrival-playing .cathedral-party,.arrival-still .cathedral-party {--arrival:10.8s;}
.arrival-playing .arrival-rift,.arrival-still .arrival-rift {
  display:block;position:absolute;z-index:1;left:calc(var(--figure-height)*.40);bottom:-6%;
  width:calc(var(--figure-height)*1.32);height:calc(var(--figure-height)*1.58);
}
.arrival-playing .cathedral-berg,.arrival-playing .cathedral-tim,.arrival-playing .cathedral-skeleton {z-index:2;}
.arrival-playing .cathedral-berg {animation:arrival-emerge var(--arrival) linear both;}
@keyframes arrival-emerge {
  0%,17% {opacity:0;transform:translate(47%,-4%) scale(.72);filter:brightness(.25) sepia(.8) hue-rotate(156deg);}
  20% {opacity:1;transform:translate(42%,-4%) scale(.78);filter:brightness(.55) sepia(.8) hue-rotate(156deg) drop-shadow(0 0 2px #80c1ff);}
  22.5% {transform:translate(36%,-4.2%) scale(.84);}
  25% {transform:translate(29%,-1.8%) scale(.88);}
  27.5% {transform:translate(20%,-3%) scale(.92);filter:brightness(1) drop-shadow(0 0 2px #95cbff);}
  30% {transform:translate(12%,-.7%) scale(.97);}
  32% {transform:translate(6%,-1.5%) scale(.99);}
  34%,100% {opacity:1;transform:none;filter:none;}
}
.arrival-playing .cathedral-berg::after {animation:arrival-cast var(--arrival) steps(11,end) both;}
@keyframes arrival-cast {0%,31%,71%,100% {background-position-x:0%} 42%,58% {background-position-x:100%}}
.arrival-playing .staff-stream {z-index:2;animation:arrival-stream var(--arrival) steps(31,end) both;}
@keyframes arrival-stream {0%,42% {background-position-x:0%} 58%,100% {background-position-x:100%}}
.arrival-playing .cathedral-skeleton {z-index:3;animation:arrival-shamble var(--arrival) ease-in-out both;}
.arrival-playing .cathedral-skeleton i {animation:arrival-bones var(--arrival) ease-in-out both;}
.arrival-playing .cathedral-skeleton::after {animation:arrival-soul var(--arrival) ease-in-out both;}
@keyframes arrival-bones {
  0%,43% {transform:translate(var(--x),var(--y)) rotate(var(--angle)) scale(.84,var(--flat));}
  54% {transform:translate(0,-1%) rotate(-1deg);}
  57%,100% {transform:none;}
}
@keyframes arrival-soul {0%,40%,58%,100% {opacity:0;} 46%,51% {opacity:.95;}}
@keyframes arrival-shamble {
  0%,56%,100% {transform:none;}
  60% {transform:translate(-31%,-3%) rotate(-3deg);}
  63% {transform:translate(-66%,0) rotate(2deg);}
  66% {transform:translate(-100%,-4%) rotate(-3deg);}
  69% {transform:translate(-143%,0) rotate(1deg);}
  73%,92% {transform:translate(-182%,0) rotate(-1deg);}
  94% {transform:translate(-145%,-3%) rotate(2deg);}
  96% {transform:translate(-93%,0) rotate(-1deg);}
  98% {transform:translate(-49%,-2%) rotate(2deg);}
}
.arrival-playing .arrival-sign,.arrival-still .arrival-sign {
  display:block;position:absolute;z-index:1;left:26%;top:24%;transform-origin:10% 88%;
  width:max-content;max-width:none;padding-bottom:23%;
}
.arrival-sign::before {
  content:'';position:absolute;left:17%;top:45%;bottom:0;width:4px;background:linear-gradient(90deg,#3e2818,#96704b,#492d18);
  transform:rotate(5deg);box-shadow:1px 1px 1px #120c09;
}
.arrival-sign span {
  position:relative;display:block;border:1px solid #392516;color:#24190f;font:700 clamp(12px,.95vw,15px)/1.12 Georgia,serif;
  padding:3px 5px;background:repeating-linear-gradient(0deg,#c59f68 0px,#d3ae79 2px,#b79260 3px,#caa877 4px);
  text-shadow:0 1px #edd9b2;box-shadow:inset 0 0 0 1px #d6b57c,0 1px 3px #100a07;
}
.arrival-playing .arrival-sign {animation:arrival-placard var(--arrival) ease-in-out both;}
@keyframes arrival-placard {
  0%,55% {opacity:0;transform:translate(-33%,95%) rotate(24deg) scale(.65);}
  59% {opacity:1;transform:translate(-46%,0) rotate(-7deg);}
  63%,69% {transform:translate(-46%,0) rotate(-4deg);}
  66% {transform:translate(-46%,-6%) rotate(-9deg);}
  73%,84% {opacity:1;transform:translate(-46%,0) rotate(-3deg);}
  88% {opacity:1;transform:translate(-40%,98%) rotate(16deg);}
  90% {opacity:1;transform:translate(-46%,90%) rotate(10deg);}
  92%,100% {opacity:0;transform:translate(-46%,93%) rotate(12deg);}
}
/* On return, let the summoned actor stand for the rest of its first normal idle. */
.arrival-joined .cathedral-skeleton,.arrival-joined .cathedral-skeleton i,
.arrival-joined .cathedral-skeleton::after,.arrival-joined .cathedral-berg::after,.arrival-joined .staff-stream {animation-delay:-4.7s;}
.arrival-still .cathedral-skeleton {transform:translateX(-182%);}
.arrival-still .arrival-sign {transform:translateX(-45%) rotate(-3deg);}
.arrival-still .arrival-rift {
  border-radius:50%;background:radial-gradient(ellipse,transparent 29%,#6b91c77a 36%,#c0f3ffba 39%,#386cc29c 42%,transparent 49%);
}
@media(max-width:730px) {
  .party-present .arrival-replay {right:9px;top:7px;font-size:11px;}
}
