/**
 * Helmut Age Gate — overlay styles.
 * Accent color is injected via the --helmut-age-gate-accent CSS variable.
 */

html.helmut-age-gate-locked,
body.helmut-age-gate-locked {
	overflow: hidden !important;
}

.helmut-age-gate {
	--hag-accent: var( --helmut-age-gate-accent, #dd1b5e );
	--hag-backdrop: rgba( 12, 12, 16, 0.92 );
	--hag-card-bg: #15151b;
	--hag-card-border: rgba( 255, 255, 255, 0.08 );
	--hag-title: #ffffff;
	--hag-text: #c9c9d4;
	--hag-decline-border: rgba( 255, 255, 255, 0.18 );
	--hag-decline-border-hover: rgba( 255, 255, 255, 0.4 );
	--hag-decline-hover-text: #ffffff;
	--hag-shadow: 0 24px 60px rgba( 0, 0, 0, 0.55 );
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: var( --hag-backdrop );
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
	color: var( --hag-text );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	overflow-y: auto;
}

/* Light panel variant. */
.helmut-age-gate--light {
	--hag-backdrop: rgba( 244, 244, 247, 0.94 );
	--hag-card-bg: #ffffff;
	--hag-card-border: rgba( 0, 0, 0, 0.1 );
	--hag-title: #17171c;
	--hag-text: #4a4a55;
	--hag-decline-border: rgba( 0, 0, 0, 0.18 );
	--hag-decline-border-hover: rgba( 0, 0, 0, 0.4 );
	--hag-decline-hover-text: #17171c;
	--hag-shadow: 0 24px 60px rgba( 0, 0, 0, 0.18 );
}

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

.helmut-age-gate__card {
	width: 100%;
	max-width: 460px;
	background: var( --hag-card-bg );
	border: 1px solid var( --hag-card-border );
	border-top: 4px solid var( --hag-accent );
	border-radius: 14px;
	padding: 32px 28px;
	text-align: center;
	box-shadow: var( --hag-shadow );
}

.helmut-age-gate__title {
	margin: 0 0 14px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var( --hag-title );
}

.helmut-age-gate__message {
	margin: 0 0 24px;
	font-size: 0.975rem;
	color: var( --hag-text );
}

.helmut-age-gate__message p {
	margin: 0 0 10px;
}

.helmut-age-gate__message p:last-child {
	margin-bottom: 0;
}

.helmut-age-gate__message--denied {
	margin: 0;
	color: var( --hag-accent );
	font-weight: 600;
}

.helmut-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.helmut-age-gate__btn {
	display: inline-block;
	width: 100%;
	padding: 13px 20px;
	font-size: 1rem;
	font-weight: 600;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.helmut-age-gate__btn--confirm {
	background: var( --hag-accent );
	color: #ffffff;
}

.helmut-age-gate__btn--confirm:hover {
	transform: translateY( -1px );
	filter: brightness( 1.08 );
}

.helmut-age-gate__btn--decline {
	background: transparent;
	color: var( --hag-text );
	border-color: var( --hag-decline-border );
}

.helmut-age-gate__btn--decline:hover {
	border-color: var( --hag-decline-border-hover );
	color: var( --hag-decline-hover-text );
}

.helmut-age-gate__btn:focus-visible {
	outline: 3px solid var( --hag-accent );
	outline-offset: 3px;
}

@media ( max-width: 480px ) {
	.helmut-age-gate__card {
		padding: 26px 20px;
	}

	.helmut-age-gate__title {
		font-size: 1.3rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.helmut-age-gate__btn {
		transition: none;
	}

	.helmut-age-gate__btn--confirm:hover {
		transform: none;
	}
}
