.premium-welcome-shell[hidden] { display: none; }

.premium-welcome-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: clamp(.55rem, 2vw, 1.25rem);
  opacity: 0;
  background: rgba(82, 55, 65, .42);
  backdrop-filter: blur(9px);
  transition: opacity .2s ease;
}

.premium-welcome-shell.premium-welcome-active { opacity: 1; }

.premium-welcome-panel {
  position: relative;
  width: min(100%, 25rem, calc(70dvh * 941 / 1672));
  max-height: 70dvh;
  overflow: hidden;
  border: 1px solid rgba(198, 151, 85, .4);
  border-radius: clamp(1.15rem, 2.5vw, 1.7rem);
  background: #f9d8de;
  box-shadow: 0 35px 100px rgba(69, 38, 50, .28), 0 0 0 1px rgba(255, 255, 255, .7) inset;
  transform: scale(.975) translateY(.5rem);
  transition: transform .22s cubic-bezier(.2, .7, .25, 1);
}

.premium-welcome-shell.premium-welcome-active .premium-welcome-panel { transform: scale(1) translateY(0); }

.premium-welcome-close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 4;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(161, 91, 109, .24);
  border-radius: 50%;
  color: #7a4d56;
  background: rgba(255, 252, 248, .94);
  box-shadow: 0 8px 24px rgba(93, 50, 66, .18);
  font: 400 1.7rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.premium-welcome-close:hover,
.premium-welcome-close:focus-visible {
  color: #963f5a;
  border-color: rgba(168, 80, 95, .5);
  outline: 3px solid rgba(198, 111, 121, .24);
  outline-offset: 2px;
}

.premium-welcome-cta {
  display: block;
  width: 100%;
  aspect-ratio: 941 / 1672;
  background: #f9d8de;
}

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

@media (max-width: 767px) {
  .premium-welcome-shell { padding: .5rem; }
  .premium-welcome-panel {
    width: min(100%, calc(88dvh * 941 / 1672));
    max-height: 88dvh;
    border-radius: 1.2rem;
  }
}

@media (max-width: 360px), (max-height: 700px) {
  .premium-welcome-panel {
    width: min(100%, calc(84dvh * 941 / 1672));
    max-height: 84dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-welcome-shell,
  .premium-welcome-panel { transition: none; }
}
