:root {
  --color-primary: #9C9CF3;
  --color-secondary: #FF0079;
  --color-tertiary: #0E045A;
  --font-serif: 'Bodoni', serif;
  --font-sans: 'Sofia', sans-serif;
  --color-white: #ffffff;

  --mobile-width: 700px;
}

.melchior-welcome-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.melchior-welcome-popup-overlay.visible {
  opacity: 1;
}

.melchior-welcome-popup {
  background-image: url("../assets/rays.svg");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: var(--color-tertiary);
  padding: 28px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  color: var(--color-white);
  font-family: var(--font-serif);
}

.melchior-welcome-popup img {
  width: 64px;
  height: 64px;
  margin: auto;
  display: block;
  margin-bottom: 2rem;
}

.melchior-welcome-popup-overlay.visible .melchior-welcome-popup {
  transform: scale(1);
}

.melchior-welcome-popup-close {
  position: absolute;
  top: 17px;
  right: 17px;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--color-white);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.melchior-welcome-popup-title {
  font-size: 30px;
  font-weight: 400;
  color: var(--color-white);
  margin: 0 2rem 1rem 0;
  line-height: 1.3;
  text-align: center;
  background: linear-gradient(90deg,rgba(233, 81, 96, 1) 0%, rgba(139, 74, 178, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.melchior-welcome-popup-message {
  font-size: 16px;
  color: var(--color-white);
  line-height: 130%;
  font-weight: 500;
  margin-bottom: 21px;
  text-align: center;
  font-family: var(--font-sans);
  padding: 0;
}

.melchior-welcome-popup-message p {
  margin-bottom: 21px;
}

.melchior-welcome-popup-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.melchior-welcome-popup-button {
  background-image: url("../assets/arrows.svg");
  background-color: var(--color-secondary);
  background-repeat: no-repeat;
  background-position: 90% center;
  color: var(--color-white);
  border: none;
  padding: 10px 50px 10px 10px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;

}

.melchior-welcome-popup-button:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .melchior-welcome-popup {
    padding: 1.5rem;
    margin: 1rem;
  }

  .melchior-welcome-popup-actions {
    justify-content: center;
  }
}