@charset "utf-8";

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

.welcome-poster {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 182, 240, 0.32), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(254, 200, 56, 0.25), transparent 34%),
    rgba(4, 17, 40, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.welcome-poster.is-visible {
  opacity: 1;
  visibility: visible;
}

.welcome-poster.is-closing {
  opacity: 0;
  visibility: hidden;
}

.welcome-poster__dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(94vw, 760px);
  height: min(94dvh, 980px);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20, 59, 94, 0.92), rgba(7, 28, 59, 0.94));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 45px rgba(56, 182, 240, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-poster.is-visible .welcome-poster__dialog {
  transform: translateY(0) scale(1);
}

.welcome-poster__heading {
  margin: 0 52px 12px;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.welcome-poster__heading span {
  color: #fec838;
}

.welcome-poster__image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-poster__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-poster__actions {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.welcome-poster__enter,
.welcome-poster__close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.welcome-poster__enter {
  min-width: min(100%, 280px);
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #071c3b;
  background: linear-gradient(135deg, #fec838, #fff36a);
  box-shadow: 0 10px 28px rgba(254, 200, 56, 0.34);
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.welcome-poster__enter:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.welcome-poster__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 23, 52, 0.72);
  font-size: 1.65rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.welcome-poster__close:hover {
  background: rgba(220, 47, 70, 0.88);
  transform: rotate(90deg);
}

.welcome-poster__enter:focus-visible,
.welcome-poster__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .welcome-poster {
    padding: 8px;
  }

  .welcome-poster__dialog {
    width: 100%;
    height: min(98dvh, 900px);
    padding: 12px;
    border-radius: 18px;
  }

  .welcome-poster__heading {
    margin: 2px 46px 10px;
    font-size: clamp(1.15rem, 5.6vw, 1.6rem);
  }

  .welcome-poster__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .welcome-poster__actions {
    padding-top: 10px;
  }

  .welcome-poster__enter {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-poster,
  .welcome-poster__dialog,
  .welcome-poster__enter,
  .welcome-poster__close {
    transition: none !important;
  }
}
