@keyframes lkz-welcome-backdrop-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

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

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

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: 0.75rem;
  background: hsl(0 0% 0% / 0.78);
  opacity: 0;
}

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

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

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

.lkz-welcome-modal__frame {
  position: relative;
  width: min(100%, 920px);
  opacity: 0;
  transform: 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.28s ease forwards;
}

.lkz-welcome-modal__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(52vw, 320px);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(115deg, hsl(270 38% 11%) 0%, hsl(270 24% 7%) 50%, hsl(0 0% 4%) 100%);
  box-shadow: 0 32px 80px hsl(0 0% 0% / 0.7);
}

.lkz-welcome-modal__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
}

.lkz-welcome-modal__title {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.95rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
}

.lkz-welcome-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lkz-welcome-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  z-index: 2;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  background: transparent;
  color: hsl(0 0% 100% / 0.88);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 6px hsl(0 0% 0% / 0.85);
  transition: color 0.15s ease, transform 0.15s ease;
}

.lkz-welcome-modal__close:hover {
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 680px) {
  .lkz-welcome-modal__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lkz-welcome-modal__img {
    order: -1;
    min-height: 160px;
    max-height: 200px;
  }

  .lkz-welcome-modal__copy {
    padding: 1.1rem 1rem 1.4rem;
  }
}

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