.odins-age-gate {
	--age-ink: #231b16;
	--age-night: #160f0c;
	--age-oak: #2d1d16;
	--age-wine: #771d25;
	--age-wine-dark: #4a1118;
	--age-amber: #d79534;
	--age-amber-light: #f0c36c;
	--age-gold: #b9914a;
	--age-paper: #d8c6a6;
	--age-cream: #f3ead7;
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	overflow: auto;
	padding: clamp(16px, 4vw, 48px);
	position: fixed;
	opacity: 1;
	transition: opacity 800ms ease-in-out;
	z-index: 1000000;
}

.odins-age-gate.is-closing {
	opacity: 0;
	pointer-events: none;
}

.odins-age-gate[hidden],
.odins-age-gate-confirmed .odins-age-gate:not(.odins-age-gate--preview) {
	display: none;
}

.odins-age-gate__backdrop {
	backdrop-filter: blur(6px);
	background: rgba(13, 7, 5, 0.88);
	inset: 0;
	position: fixed;
}

.odins-age-gate__dialog {
	animation: odins-age-dialog-in 180ms ease-out both;
	background:
		linear-gradient(rgba(243, 234, 215, 0.97), rgba(216, 198, 166, 0.98)),
		radial-gradient(circle at 50% 0, rgba(215, 149, 52, 0.22), transparent 42%);
	border: 1px solid var(--age-gold);
	border-radius: 6px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), inset 0 0 0 4px rgba(119, 29, 37, 0.1);
	color: var(--age-ink);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: clamp(24px, 5vw, 48px);
	position: relative;
	text-align: center;
	width: min(680px, 100%);
	z-index: 1;
}

@keyframes odins-age-dialog-in {
	from { opacity: 0; transform: translateY(10px) scale(0.99); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.odins-age-gate__dialog::before {
	border-block: 1px solid rgba(119, 29, 37, 0.28);
	content: "";
	inset: 10px 14px auto;
	height: 5px;
	pointer-events: none;
	position: absolute;
}

.odins-age-gate__dialog:focus {
	outline: none;
}

.odins-age-gate__logo {
	display: flex;
	justify-content: center;
	margin: 0 auto 12px;
}

.odins-age-gate__logo img {
	height: auto;
	max-height: 88px;
	max-width: 130px;
	object-fit: contain;
	width: auto;
}

.odins-age-gate__badge {
	align-items: center;
	background: var(--age-wine);
	border: 3px solid var(--age-gold);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(74, 17, 24, 0.24);
	color: #fff8e8;
	display: inline-flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 700;
	height: 64px;
	justify-content: center;
	line-height: 1;
	margin-bottom: 16px;
	width: 64px;
}

.odins-age-gate h2 {
	color: var(--age-oak);
	font-family: Metamorphous, Georgia, "Times New Roman", serif;
	font-size: clamp(1.65rem, 4vw, 2.45rem);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 10px;
}

.odins-age-gate__subheading {
	color: var(--age-wine-dark);
	font-family: Metamorphous, Georgia, "Times New Roman", serif;
	font-size: clamp(1rem, 2.4vw, 1.22rem);
	font-weight: 600;
	margin: 0 0 20px;
}

.odins-age-gate__copy {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	margin-inline: auto;
	max-width: 58ch;
}

.odins-age-gate__copy p {
	margin: 0 0 0.8em;
}

.odins-age-gate__actions {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
	margin: 24px 0 18px;
}

.odins-age-gate__button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 5px;
	cursor: pointer;
	display: inline-flex;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1.35;
	min-height: 52px;
	padding: 12px 18px;
	text-align: center;
	text-decoration: none;
	touch-action: manipulation;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.odins-age-gate__button--confirm,
.odins-age-gate__button--leave {
	background: var(--age-amber);
	border-color: var(--age-amber);
	color: var(--age-night);
}

.odins-age-gate__button--confirm:hover,
.odins-age-gate__button--leave:hover {
	background: var(--age-amber-light);
	border-color: var(--age-amber-light);
	color: var(--age-night);
}

.odins-age-gate__button--deny {
	background: var(--age-wine);
	border-color: var(--age-wine);
	color: #fff8e8;
}

.odins-age-gate__button--deny:hover {
	background: var(--age-wine-dark);
	border-color: var(--age-wine-dark);
	color: #fff8e8;
}

.odins-age-gate__button:focus-visible,
.odins-age-gate__legal a:focus-visible,
.odins-age-gate__preview-close:focus-visible {
	outline: 3px solid var(--age-wine);
	outline-offset: 3px;
}

.odins-age-gate__button:active {
	transform: translateY(1px);
}

.odins-age-gate__notice {
	color: #594a3f;
	font-size: 0.82rem;
	line-height: 1.5;
	margin: 0 auto;
	max-width: 62ch;
}

.odins-age-gate__legal {
	border-top: 1px solid rgba(119, 29, 37, 0.2);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: center;
	margin-top: 20px;
	padding-top: 15px;
}

.odins-age-gate__legal a {
	color: var(--age-wine-dark);
	font-size: 0.78rem;
	font-weight: 700;
}

.odins-age-gate__rejection .odins-age-gate__button {
	margin-top: 18px;
}

.odins-age-gate__preview-close {
	background: transparent;
	border: 0;
	color: var(--age-wine-dark);
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 700;
	margin-top: 18px;
	text-decoration: underline;
}

html.odins-age-gate-open,
html.odins-age-gate-open body {
	overflow: hidden;
}

@media (max-width: 600px) {
	.odins-age-gate {
		align-items: flex-start;
		padding: 12px;
	}

	.odins-age-gate__dialog {
		max-height: calc(100dvh - 24px);
		padding: 28px 18px 22px;
	}

	.odins-age-gate__logo img {
		max-height: 64px;
		max-width: 100px;
	}

	.odins-age-gate__badge {
		font-size: 1.2rem;
		height: 54px;
		width: 54px;
	}

	.odins-age-gate__actions {
		grid-template-columns: 1fr;
	}

	.odins-age-gate__button {
		min-height: 50px;
		width: 100%;
	}
}

@media (max-height: 620px) {
	.odins-age-gate {
		align-items: flex-start;
	}

	.odins-age-gate__logo {
		display: none;
	}

	.odins-age-gate__badge {
		height: 50px;
		margin-bottom: 10px;
		width: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.odins-age-gate,
	.odins-age-gate__dialog,
	.odins-age-gate__button {
		animation: none;
		transition: none;
	}
}
