/* Splash "Freigeschaltet" (ADR-0053 stage 3, views/partials/unlock-splash.ejs): a native dialog on the
   dark ZIQAVO brand stage. The unlocked part shines in the middle with four-pointed stars around it,
   below the own figure wearing it cheers once. Colours only from the ZIQAVO tokens; style attributes
   are blocked by the CSP, so the stars are staggered with :nth-child rules. */
.unlock-splash {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden auto;
  color: #effbf6;
  background: var(--ziqavo-gradient);
  border: 1px solid rgb(70 245 173 / 25%);
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%);
}

.unlock-splash[open] {
  animation: unlock-splash-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

.unlock-splash::backdrop {
  background: rgb(4 22 29 / 70%);
  backdrop-filter: blur(4px);
}

.unlock-splash__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.unlock-splash__star {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--ziqavo-mint);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: unlock-splash-twinkle 2.4s ease-in-out infinite;
}

.unlock-splash__star:nth-child(1) {
  top: 10%;
  left: 14%;
}
.unlock-splash__star:nth-child(2) {
  top: 18%;
  left: 82%;
  width: 1rem;
  height: 1rem;
  animation-delay: 0.3s;
}
.unlock-splash__star:nth-child(3) {
  top: 34%;
  left: 8%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 0.6s;
}
.unlock-splash__star:nth-child(4) {
  top: 30%;
  left: 90%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 0.9s;
}
.unlock-splash__star:nth-child(5) {
  top: 6%;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  animation-delay: 1.2s;
}
.unlock-splash__star:nth-child(6) {
  top: 46%;
  left: 78%;
  animation-delay: 1.5s;
}
.unlock-splash__star:nth-child(7) {
  top: 50%;
  left: 18%;
  width: 0.875rem;
  height: 0.875rem;
  animation-delay: 1.8s;
}
.unlock-splash__star:nth-child(8) {
  top: 22%;
  left: 30%;
  width: 0.4375rem;
  height: 0.4375rem;
  animation-delay: 2.1s;
}

.unlock-splash__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.unlock-splash__eyebrow {
  margin: 0;
  color: var(--ziqavo-mint);
  font:
    800 clamp(1.75rem, 6vw, 2.25rem) / 1.1 Manrope,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.03em;
}

.unlock-splash__item {
  display: grid;
  place-items: center;
  width: 9rem;
  height: 9rem;
  margin-top: 0.25rem;
  background: radial-gradient(closest-side, rgb(70 245 173 / 30%), transparent);
  border-radius: 50%;
  animation: unlock-splash-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.4) 0.15s both;
}

.unlock-splash__item svg {
  width: 7.5rem;
  height: 7.5rem;
  filter: drop-shadow(0 6px 18px rgb(42 255 179 / 35%));
}

.unlock-splash__name {
  margin: 0;
  font:
    800 1.375rem / 1.2 Manrope,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.02em;
}

.unlock-splash__figure.presence-preview {
  padding: 0.75rem;
  background: rgb(4 22 29 / 45%);
}

.unlock-splash__figure svg {
  width: 7rem;
  height: 7rem;
}

.unlock-splash__reason {
  max-width: 22rem;
  margin: 0;
  color: #9fbfbb;
}

.unlock-splash__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.unlock-splash .unlock-splash__later {
  color: #effbf6;
  border-color: rgb(239 251 246 / 40%);
}

.unlock-splash__count,
.unlock-splash__more {
  margin: 0;
  color: #9fbfbb;
  font-size: 0.8125rem;
}

.unlock-splash__more a {
  color: var(--ziqavo-mint);
}

.unlock-splash__error {
  margin: 0;
  color: #ffb4a8;
  font-size: 0.875rem;
}

.unlock-splash__count:empty {
  display: none;
}

@keyframes unlock-splash-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.94);
  }
}

@keyframes unlock-splash-pop {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-12deg);
  }
}

@keyframes unlock-splash-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .unlock-splash[open],
  .unlock-splash__item,
  .unlock-splash__star {
    animation: none;
  }

  .unlock-splash__star {
    opacity: 0.6;
  }
}
