.award-popup {
	--award-blue: var(--anambas-oceanblue, #184B77);
	--award-orange: #F3A44A;
	--award-orange-soft: #FDE7CC;

	width: min(720px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	overflow: auto;
	background: #fff;
	box-shadow: 0 24px 60px rgba(9, 30, 50, 0.35);
	font-family: "Poppins", Arial, sans-serif;
	color: var(--award-blue);
}

.award-popup[open] {
	display: grid;
	grid-template-columns: 2fr 3fr;
	animation: award-popup-in 0.3s ease-out;
}

.award-popup::backdrop {
	background: rgba(9, 30, 50, 0.65);
}

.award-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--award-blue);
	cursor: pointer;
	z-index: 1;
}

.award-popup__close:hover,
.award-popup__close:focus-visible {
	background: var(--award-orange-soft);
}

.award-popup__close:focus-visible {
	outline: 2px solid var(--award-blue);
	outline-offset: 2px;
}

.award-popup__close svg {
	width: 22px;
	height: 22px;
}

.award-popup__trophy {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	background: linear-gradient(160deg, #eef3f8 0%, #d6e4f0 100%);
}

.award-popup__trophy img {
	width: auto;
	max-width: 100%;
	max-height: 320px;
	height: auto;
}

.award-popup__plaque {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 32px;
	text-align: center;
}

.award-popup__logo {
	width: 100%;
	max-width: 240px;
	height: auto;
	margin-bottom: 28px;
}

.award-popup__title {
	margin: 0;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--award-blue);
}

/* Blue on orange keeps the badge readable (about 4.6:1); orange text on white would not be. */
.award-popup__title span {
	display: table;
	margin: 12px auto 0;
	padding: 6px 22px;
	border-radius: 999px;
	background: var(--award-orange);
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.award-popup[open] {
		grid-template-columns: 1fr;
	}

	.award-popup__trophy {
		padding: 24px 16px 16px;
	}

	.award-popup__trophy img {
		max-height: 200px;
	}

	.award-popup__plaque {
		padding: 20px 20px 28px;
	}

	.award-popup__logo {
		max-width: 190px;
		margin-bottom: 16px;
	}

	.award-popup__title {
		font-size: 21px;
	}

	.award-popup__title span {
		font-size: 18px;
	}
}

/* Phones held sideways: keep the whole dialog, and so the close button, on screen. */
@media (max-height: 500px) and (min-width: 641px) {
	.award-popup__trophy {
		padding: 16px;
	}

	.award-popup__trophy img {
		max-height: calc(100dvh - 80px);
	}

	.award-popup__plaque {
		padding: 24px;
	}

	.award-popup__logo {
		max-width: 180px;
		margin-bottom: 14px;
	}
}

@keyframes award-popup-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.award-popup[open] {
		animation: none;
	}
}
