/* Shared by the signup and position screens. Keep the reflection inside the PNG silhouette. */
.ticket-art {
  --ticket-size: 224px;
  position: relative;
  display: block;
  width: var(--ticket-size);
  height: var(--ticket-size);
  margin: 30px auto;
  pointer-events: none;
  animation: ticket-float 3.4s ease-in-out infinite alternate;
}
.ticket-art--large {
  --ticket-size: 280px;
  margin: 0 auto 28px;
}
.ticket-art > .ticket {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.ticket-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/ticket-wordmark.svg") center / contain no-repeat;
}
@supports (mask-image: url("/assets/invite-ticket-v6.png")) or
  (-webkit-mask-image: url("/assets/invite-ticket-v6.png")) {
  .ticket-art::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: radial-gradient(
      ellipse 7.5% 3.25% at center,
      rgba(243, 245, 244, 0.8) 0%,
      rgba(243, 245, 244, 0.42) 18%,
      rgba(243, 245, 244, 0.08) 55%,
      transparent 100%
    );
    background-size: 200% 200%;
    background-position: 89% 59.5%;
    background-repeat: no-repeat;
    -webkit-mask: url("/assets/invite-ticket-v6.png") center / contain no-repeat;
    mask: url("/assets/invite-ticket-v6.png") center / contain no-repeat;
    mask-mode: alpha;
    /* Same timing and easing as the bob: the reflection follows the tilt. */
    animation: ticket-glimmer 3.4s ease-in-out infinite alternate;
  }
}
@keyframes ticket-float {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-7px) rotate(0.9deg);
  }
}
@keyframes ticket-glimmer {
  from {
    background-position: 89% 59.5%;
    opacity: 0.2;
  }
  to {
    background-position: 70% 63%;
    opacity: 0.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-art,
  .ticket-art::after {
    animation: none;
  }
  .ticket-art::after {
    display: none;
  }
}
