/* Visible by default; hidden once the visitor has confirmed their age. */
.age-gate {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
	overflow-y: auto;
	background: rgba(3, 5, 10, 0.88);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.age-ok .age-gate {
	display: none;
}

.age-gate.is-leaving {
	opacity: 0;
	transition: opacity 0.4s var(--ease-out);
}

html:not(.age-ok) {
	overflow: hidden;
}

.age-gate__glow {
	position: absolute;
	inset: 0;
	background: var(--glow-radial);
	pointer-events: none;
}

.age-gate__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: auto;
	padding: clamp(1.75rem, 5vw, 3rem);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(180deg, rgba(47, 107, 255, 0.08), transparent 40%),
		var(--color-bg-elevated);
	box-shadow: 0 40px 120px -40px rgba(47, 107, 255, 0.45);
	text-align: center;
	animation: age-gate-in 0.8s var(--ease-out) both;
}

@keyframes age-gate-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.98);
	}
}

.age-gate__logo {
	display: flex;
	justify-content: center;
	margin-bottom: var(--space-6);
}

.age-gate__logo .custom-logo {
	display: block;
	width: auto;
	max-height: 44px;
}

.age-gate__logo .site-logo__text {
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	color: var(--color-text);
	text-decoration: none;
}

.age-gate .eyebrow {
	justify-content: center;
}

.age-gate__title {
	margin-bottom: var(--space-3);
	font-size: var(--fs-xl);
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
}

.age-gate__text {
	margin-bottom: var(--space-6);
	color: var(--color-text-muted);
}

.age-gate__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
}

@media (max-width: 420px) {
	.age-gate__actions {
		grid-template-columns: 1fr;
	}
}

.age-gate__denied {
	display: none;
}

.age-denied .age-gate__ask {
	display: none;
}

.age-denied .age-gate__denied {
	display: block;
}

.age-gate__warning {
	margin: var(--space-6) 0 0;
	padding: 0.7rem 0.9rem;
	border: 2px solid var(--color-warning-text);
	background: var(--color-warning-bg);
	color: var(--color-warning-text);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	line-height: 1.4;
}

.age-gate__legal {
	margin: var(--space-4) 0 0;
	font-size: var(--fs-xs);
	color: var(--color-text-subtle);
}
