html[data-arrival] { overflow: hidden; }
html[data-arrival] body > :not(#arrival-dialog) { visibility: hidden; }
.arrival {
  --arrival-duration: 2800ms;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100svh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #070510;
  color: #f0e6fc;
  font-family: var(--serif, "Songti SC", "SimSun", serif);
  opacity: 1;
  transition: opacity 450ms ease;
}
.arrival::backdrop { background: #070510; transition: opacity 450ms ease; }
.arrival[open] { display: grid; place-items: center; }
.arrival[data-state="leaving"], .arrival[data-state="leaving"]::backdrop { opacity: 0; }
.arrival-sky, .arrival-flash, .arrival-lightning { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arrival-sky {
  z-index: -2;
  background: radial-gradient(ellipse at 50% 43%, #64339d26 0%, #30205214 34%, transparent 65%), radial-gradient(ellipse at 8% 90%, #4a26731a, transparent 52%), #070510;
}
.arrival-sky::before, .arrival-sky::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 740px);
  aspect-ratio: 1;
  border: 1px solid #bea2ed0a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.arrival-sky::after { width: min(88vw, 1060px); border-style: dashed; border-color: #bea2ed08; }
.arrival-flash { background: radial-gradient(ellipse at 50% 43%, #aa7de5, #583484 70%); opacity: 0; }
.arrival[open] .arrival-flash { animation: arrival-flash var(--arrival-duration) linear both; }
.arrival-lightning { overflow: visible; opacity: .78; filter: drop-shadow(0 0 5px #bd88ff) drop-shadow(0 0 16px #7c37ce); }
.arrival-bolt { stroke: #e6ccff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.arrival-branch { stroke-width: .65; }
.arrival[open] .arrival-bolt--one { animation: arrival-bolt-one var(--arrival-duration) linear both; }
.arrival[open] .arrival-bolt--two { animation: arrival-bolt-two var(--arrival-duration) linear both; }
.arrival-header, .arrival-footer { position: absolute; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.arrival-header { top: max(30px, env(safe-area-inset-top)); color: #c7b8d78c; font-size: 11px; letter-spacing: .24em; }
.arrival-header > span:first-child { display: flex; align-items: center; gap: 12px; }
.arrival-header i { display: inline-block; width: 6px; height: 6px; border: 1px solid #d2b2f0; transform: rotate(45deg); box-shadow: 0 0 12px #bd88ff4d; }
.arrival-header b { color: #b5a17c; font-weight: 400; }
.arrival-header > span:last-child { font: 9px Georgia, serif; letter-spacing: .2em; opacity: .55; }
.arrival-center { position: relative; width: min(90%, 580px); margin-top: -5px; text-align: center; }
.arrival[open] .arrival-center { animation: arrival-reveal 750ms ease-out both; }
.arrival-emblem { position: relative; display: grid; place-items: center; width: 224px; height: 224px; margin: 0 auto 22px; }
.arrival-orbit { position: absolute; inset: 0; border: 1px solid #cdaaf028; border-radius: 50%; }
.arrival-orbit::before { content: ""; position: absolute; inset: 10px; border: 1px dashed #ccb1e71a; border-radius: inherit; }
.arrival-orbit::after { content: ""; position: absolute; inset: -11px; border: 1px solid #c29be50b; border-radius: inherit; }
.arrival-halo { position: absolute; inset: 19px; border-radius: 50%; background: conic-gradient(from 25deg, transparent 8%, #c68effa6 22%, transparent 35%, transparent 57%, #9b69da8c 70%, transparent 89%); mask-image: radial-gradient(transparent 66%, #000 67%, #000 69%, transparent 70%); -webkit-mask-image: radial-gradient(transparent 66%, #000 67%, #000 69%, transparent 70%); filter: drop-shadow(0 0 8px #ae6bff); }
.arrival[open] .arrival-halo { animation: arrival-orbit 3.3s ease-out both; }
.arrival-portrait { position: relative; width: 144px; height: 144px; padding: 4px; border: 1px solid #d7b4ff80; border-radius: 50%; background: #171020; box-shadow: 0 0 0 6px #7b46b514, 0 0 34px #9b4ff03d, 0 0 80px #9b4ff019; }
.arrival-portrait img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 46%; }
.arrival-seal { position: absolute; left: calc(50% - 16px); bottom: -3px; width: 32px; height: 32px; padding: 5px; color: #cbb0f0; background: #0d0817; border: 1px solid #ac82d64a; border-radius: 50%; box-shadow: 0 0 17px #a05ade26; }
.arrival-spark { position: absolute; width: 5px; height: 5px; transform: rotate(45deg); background: #d9bcff; box-shadow: 0 0 12px #b97bff; }
.arrival-spark--one { left: 7px; top: 70px; }
.arrival-spark--two { right: 10px; bottom: 60px; width: 3px; height: 3px; opacity: .6; }
.arrival-eyebrow { color: #d2b7eaa6; font-size: 10px; letter-spacing: .36em; margin: 0 0 15px; }
.arrival h2 { margin: 0 0 12px; padding-left: .3em; font-size: clamp(29px, 3.2vw, 40px); line-height: 1.4; font-weight: 400; letter-spacing: .3em; text-shadow: 0 0 30px #b57aea26; }
.arrival-english { margin: 0; padding-left: .38em; color: #b49dc98c; font: 9px/1.7 Georgia, serif; letter-spacing: .38em; }
.arrival-verse { margin: 27px 0 29px; color: #d7c6eab8; font-size: 12px; line-height: 1.8; letter-spacing: .24em; }
.arrival-progress { width: 184px; height: 1px; margin: 0 auto; overflow: visible; background: #ddc5ff1c; }
.arrival-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #7653ad, #d6b7ff); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 9px #b57aff9c; }
.arrival[open] .arrival-progress span { animation: arrival-progress var(--arrival-duration) cubic-bezier(.2, .6, .35, 1) both; }
.arrival-caption { margin: 14px 0 0; color: #ae98c280; font-size: 9px; letter-spacing: .26em; }
.arrival-footer { bottom: max(26px, env(safe-area-inset-bottom)); color: #b29ac767; font-size: 10px; letter-spacing: .18em; }
.arrival-footer button { min-height: 44px; padding: 8px 0 8px 14px; border: 0; background: none; color: #d1b9e5a6; font-size: 11px; letter-spacing: .12em; }
.arrival-footer button span { margin-left: 14px; color: #c6a4e9; }
.arrival-footer button:hover { color: #f1e4ff; }
.arrival-footer button:focus-visible { outline: 1px solid #ceadee; outline-offset: 5px; border-radius: 2px; }
@keyframes arrival-reveal { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes arrival-orbit { from { transform: rotate(-70deg); opacity: .2; } to { transform: rotate(110deg); opacity: 1; } }
@keyframes arrival-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes arrival-flash { 0%, 27%, 39%, 65%, 78%, 100% { opacity: 0; } 29% { opacity: .09; } 68% { opacity: .12; } }
@keyframes arrival-bolt-one { 0%, 26%, 43%, 100% { opacity: 0; } 29% { opacity: .8; } 32% { opacity: .25; } }
@keyframes arrival-bolt-two { 0%, 64%, 83%, 100% { opacity: 0; } 68% { opacity: 1; } 72% { opacity: .25; } }
@media (max-width: 600px) {
  .arrival-header { top: max(24px, env(safe-area-inset-top)); font-size: 10px; }
  .arrival-header > span:last-child { font-size: 7px; letter-spacing: .1em; }
  .arrival-emblem { width: 202px; height: 202px; margin-bottom: 22px; }
  .arrival-portrait { width: 132px; height: 132px; }
  .arrival-verse { font-size: 11px; }
  .arrival-spark--one { top: 63px; }
  .arrival-footer { bottom: max(18px, env(safe-area-inset-bottom)); font-size: 9px; }
}
@media (max-height: 580px) {
  .arrival-header { top: 16px; }
  .arrival-center { margin-top: -6px; }
  .arrival-emblem { width: 146px; height: 146px; margin-bottom: 13px; }
  .arrival-portrait { width: 98px; height: 98px; padding: 3px; }
  .arrival-halo { inset: 9px; }
  .arrival-seal { width: 26px; height: 26px; left: calc(50% - 13px); bottom: -7px; padding: 4px; }
  .arrival-spark--one { left: 3px; top: 47px; width: 3px; height: 3px; }
  .arrival-spark--two { bottom: 35px; right: 4px; }
  .arrival-eyebrow { font-size: 8px; margin-bottom: 8px; }
  .arrival h2 { font-size: 25px; margin-bottom: 7px; }
  .arrival-english { font-size: 7px; }
  .arrival-verse { margin: 13px 0 16px; font-size: 10px; }
  .arrival-caption { margin-top: 10px; font-size: 8px; }
  .arrival-footer { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .arrival, .arrival::backdrop { transition: none; }
  .arrival[open] .arrival-center, .arrival[open] .arrival-halo, .arrival[open] .arrival-progress span { animation: none; }
  .arrival[open] .arrival-progress span { transform: scaleX(1); }
  .arrival-flash, .arrival-lightning { display: none; }
}
