.vt-arrival-slot {
  position: relative;
  align-self: stretch;
  flex: 1 1 0;
  min-width: 0;
  pointer-events: none;
  z-index: 8;
}
.vt-arrival-slot:empty { display: none; }
.vt-arrival {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  max-width: 100%;
  height: fit-content;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.6vw, 13px);
  padding: 2px clamp(6px, 0.7vw, 16px) 2px 3px;
  color: #4f3028;
  background: #fff7de;
  border: 2px solid #deab68;
  border-radius: 24px 14px 17px 22px;
  box-shadow: 0 2px 0 #af763e55;
  font: 600 clamp(11px, 0.95vw, 23px)/1.24 Kanit, sans-serif;
  animation: vt-arrival-card 3.2s both;
}
.vt-arrival[data-arrival='turn'] {
  color: #154d41;
  background: #e9f8e3;
  border-color: #7cb497;
}
.vt-arrival-art {
  position: relative;
  flex: none;
  width: clamp(32px, 3.4vw, 76px);
  height: clamp(31px, 4.2vh, 65px);
}
.vt-arrival-art img {
  height: 100%;
  width: 100%;
  transform-origin: 50% 90%;
  animation: vt-arrival-wave 1.3s 0.18s both;
}
.vt-arrival-art::after {
  content: '✦';
  position: absolute;
  inset: -0.18em -0.18em auto auto;
  font-size: 1.05em;
  color: #ae651c;
  animation: vt-arrival-glint 1.2s 0.32s both;
}
.vt-arrival-copy {
  display: grid;
  min-width: 0;
}
.vt-arrival-greeting {
  color: #76513f;
  font-size: 0.88em;
}
.vt-arrival-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.34em;
}
.vt-arrival-place {
  flex: none;
  padding: 0.27em 0.55em;
  background: #ffffffb8;
  border-radius: 12px;
}
@keyframes vt-arrival-card {
  0% { opacity: 0; transform: translateY(-10px) scale(0.94); }
  12% { opacity: 1; transform: translateY(2px) scale(1.025); }
  21%, 89% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes vt-arrival-wave {
  0%, 100% { transform: none; }
  23%, 64% { transform: translateY(-10%) rotate(-10deg); }
  44%, 80% { transform: rotate(7deg); }
}
@keyframes vt-arrival-glint {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  45% { opacity: 1; transform: translateY(-15%) scale(1.25); }
}
.vt-arrival-cameo {
  --from-edge: calc(100% + 9cqw);
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 38%;
  width: clamp(38px, 19cqmin, 180px);
  aspect-ratio: 1;
  pointer-events: none;
  animation: vt-arrival-dash 1.8s both;
}
.vt-world .vt-arrival-cameo img {
  width: 100%;
  height: 100%;
  object-position: bottom center;
  transform-origin: 50% 95%;
  animation: vt-arrival-pounce 1.8s both;
}
.vt-arrival-cameo::before, .vt-arrival-cameo::after {
  content: '';
  position: absolute;
  bottom: -1%;
  left: 16%;
  width: 68%;
  height: 13%;
  border-radius: 50%;
}
.vt-arrival-cameo::before {
  background: #403c4f38;
  filter: blur(2px);
}
.vt-arrival-cameo::after {
  border: max(1px, 0.36cqmin) solid #fff3bf;
  animation: vt-arrival-dust 1.8s both;
}
@keyframes vt-arrival-dash {
  0% { opacity: 0; transform: translateX(var(--from-edge)); }
  9% { opacity: 1; }
  36% { transform: translateX(-5%); }
  46%, 74% { transform: none; opacity: 1; }
  100% { transform: translateX(var(--from-edge)); opacity: 0; }
}
@keyframes vt-arrival-pounce {
  0%, 100% { transform: rotate(-6deg); }
  16% { transform: translateY(-28%) rotate(-10deg); }
  34% { transform: scale(1.09, 0.89); }
  47%, 65% { transform: rotate(-9deg); }
  56%, 73% { transform: rotate(5deg); }
  86% { transform: translateY(-19%) rotate(8deg); }
}
@keyframes vt-arrival-dust {
  0%, 30% { opacity: 0; transform: scale(0.45); }
  38% { opacity: 0.9; }
  62%, 100% { opacity: 0; transform: scale(1.65); }
}
@media (max-width: 760px) {
  .vt-arrival-slot { position: absolute; inset: 0; }
  .vt-arrival {
    inset: 25% auto auto calc(var(--gap) * 2);
    max-width: 85%;
    margin: 0;
  }
}
@media (max-width: 650px) and (orientation: portrait) {
  .vt-cabinet:has(.vt-side:not([hidden])) .vt-arrival { inset-block: auto 10%; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-arrival, .vt-arrival-art img, .vt-arrival-art::after { animation: none; }
  .vt-arrival-art::after { display: none; }
  .vt-arrival-cameo { display: none; }
}
