@keyframes lkz-welcome-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lkz-welcome-frame-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lkz-welcome-frame-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes lkz-welcome-glow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

body.lkz-welcome-open {
  overflow: hidden;
}

.lkz-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 50% 35%, hsl(210 90% 40% / 0.22), transparent 55%),
    hsl(0 0% 0% / 0.72);
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lkz-welcome-modal[hidden] {
  display: none !important;
}

.lkz-welcome-modal.is-open {
  animation: lkz-welcome-backdrop-in 0.3s ease forwards;
}

.lkz-welcome-modal.is-closing {
  animation: lkz-welcome-backdrop-in 0.22s ease reverse forwards;
}

.lkz-welcome-modal__frame {
  position: relative;
  width: min(100%, 380px);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.lkz-welcome-modal.is-open .lkz-welcome-modal__frame {
  animation: lkz-welcome-frame-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lkz-welcome-modal.is-closing .lkz-welcome-modal__frame {
  animation: lkz-welcome-frame-out 0.22s ease forwards;
}

.lkz-welcome-modal__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background:
    linear-gradient(165deg, hsl(210 28% 14%) 0%, hsl(220 20% 7%) 48%, hsl(0 0% 5%) 100%);
  box-shadow:
    0 0 0 1px hsl(210 100% 60% / 0.08),
    0 28px 64px hsl(0 0% 0% / 0.55);
  padding: 1.85rem 1.45rem 1.35rem;
  text-align: center;
}

.lkz-welcome-modal__brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.1rem;
}

.lkz-welcome-modal__brand-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(210 100% 56% / 0.55), transparent 68%);
  animation: lkz-welcome-glow 3.2s ease-in-out infinite;
  pointer-events: none;
}

.lkz-welcome-modal__brand-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #000;
  border: 1px solid hsl(0 0% 100% / 0.14);
  color: #fff;
  box-shadow: 0 10px 28px hsl(210 90% 40% / 0.28);
}

.lkz-welcome-modal__brand-mark .lkz-welcome-modal__xlogo {
  width: 1.45rem;
  height: 1.45rem;
}

.lkz-welcome-modal__title {
  margin: 0 0 0.55rem;
  padding: 0 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #fff;
}

.lkz-welcome-modal__text {
  margin: 0 auto 1.35rem;
  max-width: 18rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: hsl(0 0% 100% / 0.62);
}

.lkz-welcome-modal__text strong {
  color: #fff;
  font-weight: 700;
}

.lkz-welcome-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3rem;
  margin-bottom: 0.55rem;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.28);
}

.lkz-welcome-modal__cta:hover {
  background: hsl(0 0% 94%);
  transform: translateY(-1px);
}

.lkz-welcome-modal__cta:active {
  transform: translateY(0);
}

.lkz-welcome-modal__cta .lkz-welcome-modal__xlogo {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.lkz-welcome-modal__skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: hsl(0 0% 100% / 0.48);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lkz-welcome-modal__skip:hover {
  color: hsl(0 0% 100% / 0.82);
}

.lkz-welcome-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.06);
  color: hsl(0 0% 100% / 0.55);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lkz-welcome-modal__close:hover {
  color: #fff;
  background: hsl(0 0% 100% / 0.12);
}

@media (max-width: 420px) {
  .lkz-welcome-modal {
    padding: 0.75rem;
  }

  .lkz-welcome-modal__panel {
    padding: 1.65rem 1.15rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lkz-welcome-modal,
  .lkz-welcome-modal__frame,
  .lkz-welcome-modal__brand-glow {
    animation: none !important;
  }

  .lkz-welcome-modal.is-open,
  .lkz-welcome-modal.is-open .lkz-welcome-modal__frame {
    opacity: 1 !important;
    transform: none !important;
  }
}
