/* App launch popup (home page). Width comes from the image's 768:1376 ratio, so the whole image fits any screen. */
#iass-launch-popup {
	width: min(768px, 100vw - 32px, (100vh - 32px) * 768 / 1376);
	width: min(768px, 100vw - 32px, (100dvh - 32px) * 768 / 1376);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	overflow: visible;
	background: none;
}

#iass-launch-popup::backdrop {
	background: rgba(4, 12, 40, 0.75);
}

html:has(#iass-launch-popup[open]) {
	overflow: hidden;
}

#iass-launch-popup img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* ID selector: Astra's global button styles would otherwise win. */
#iass-launch-popup .iass-launch-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0b1f5c;
	font-size: 28px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

#iass-launch-popup .iass-launch-close:hover {
	background: #ffe9a8;
	color: #0b1f5c;
}

#iass-launch-popup .iass-launch-close:focus-visible {
	outline: 3px solid #f5c542;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	#iass-launch-popup[open] {
		animation: iass-launch-in 0.25s ease-out;
	}

	@keyframes iass-launch-in {
		from {
			opacity: 0;
			transform: scale(0.96);
		}
	}
}
