:root {
	--mm-age-primary: #b61bb2;
	--mm-age-heading: #660066;
	--mm-age-overlay: #210030;
}

html[data-mm-age-gate="required"],
html[data-mm-age-gate="required"] body {
	overflow: hidden !important;
}

.mm-age-gate {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 24px;
	background:
		radial-gradient(circle at 18% 14%, rgba(255, 107, 232, 0.27), transparent 34%),
		radial-gradient(circle at 83% 88%, rgba(131, 60, 163, 0.34), transparent 38%),
		var(--mm-age-overlay);
	backdrop-filter: blur(8px) saturate(0.86);
	-webkit-backdrop-filter: blur(8px) saturate(0.86);
}

html[data-mm-age-gate="required"] .mm-age-gate {
	display: flex;
}

html[data-mm-age-gate="verified"] .mm-age-gate {
	display: none;
}

.mm-age-gate,
.mm-age-gate * {
	box-sizing: border-box;
}

.mm-age-gate__card {
	position: relative;
	width: min(100%, 560px);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	padding: 38px 42px 34px;
	border: 1px solid rgba(102, 0, 102, 0.14);
	border-top: 6px solid var(--mm-age-primary);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(12, 0, 25, 0.48);
	color: #272626;
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
	animation: mm-age-gate-enter 220ms ease-out both;
}

.mm-age-gate__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 72px;
	margin-bottom: 22px;
}

.mm-age-gate__logo {
	display: block;
	width: auto;
	max-width: min(250px, calc(100% - 96px));
	max-height: 72px;
	object-fit: contain;
}

.mm-age-gate__wordmark {
	max-width: calc(100% - 96px);
	color: var(--mm-age-heading);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.1;
}

.mm-age-gate__badge {
	display: inline-flex;
	flex: 0 0 64px;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 3px solid var(--mm-age-primary);
	border-radius: 50%;
	background: #fff;
	color: var(--mm-age-heading);
	font-size: 25px;
	font-weight: 800;
	line-height: 1;
}

.mm-age-gate__badge span {
	font-size: 17px;
	transform: translateY(-5px);
}

.mm-age-gate__eyebrow {
	margin: 0 0 8px;
	color: var(--mm-age-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mm-age-gate__title {
	margin: 0 0 14px;
	color: var(--mm-age-heading);
	font-size: clamp(28px, 5vw, 38px);
	font-weight: 650;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.mm-age-gate__description {
	max-width: 44ch;
	margin: 0 auto 28px;
	color: #3b393b;
	font-size: 17px;
	line-height: 1.58;
}

.mm-age-gate__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

#mm-age-gate .mm-age-gate__button {
	appearance: none;
	-webkit-appearance: none;
	min-height: 50px;
	margin: 0;
	padding: 13px 20px;
	border: 2px solid var(--mm-age-primary);
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.25;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

#mm-age-gate .mm-age-gate__button--accept {
	background: var(--mm-age-primary);
	color: #fff;
}

#mm-age-gate .mm-age-gate__button--reject {
	background: #fff;
	color: var(--mm-age-heading);
}

#mm-age-gate .mm-age-gate__button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(102, 0, 102, 0.16);
}

#mm-age-gate .mm-age-gate__button:focus-visible,
#mm-age-gate a:focus-visible {
	outline: 3px solid var(--mm-age-heading);
	outline-offset: 3px;
}

.mm-age-gate__privacy,
.mm-age-gate__noscript {
	margin: 18px 0 0;
	color: #626062;
	font-size: 13px;
	line-height: 1.5;
}

.mm-age-gate__privacy a {
	color: var(--mm-age-heading);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mm-age-gate__noscript {
	padding: 10px 12px;
	border-radius: 8px;
	background: #f5edf5;
	color: var(--mm-age-heading);
}

@keyframes mm-age-gate-enter {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (min-width: 620px) {
	.mm-age-gate__actions {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 619px) {
	.mm-age-gate {
		align-items: flex-end;
		padding: 16px;
	}

	.mm-age-gate__card {
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		padding: 28px 22px 24px;
		border-radius: 20px;
	}

	.mm-age-gate__brand {
		gap: 12px;
		min-height: 58px;
		margin-bottom: 18px;
	}

	.mm-age-gate__logo {
		max-width: min(210px, calc(100% - 76px));
		max-height: 58px;
	}

	.mm-age-gate__badge {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
		font-size: 22px;
	}

	.mm-age-gate__description {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-age-gate__card {
		animation: none;
	}

	.mm-age-gate__button {
		transition: none;
	}
}
