/* Age Gate Modal */

body.helix-age-gate-open {
	overflow: hidden;
}

.helix-age-gate[hidden] {
	display: none !important;
}

.helix-age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.helix-age-gate__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 4, 8, 0.88);
	backdrop-filter: blur(8px);
}

.helix-age-gate__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
	max-height: calc(100vh - 2rem);
	overflow: auto;
}

.helix-age-gate__panel {
	padding: clamp(1.35rem, 3vw, 2rem);
	border: 1px solid rgba(0, 200, 255, 0.32);
	border-radius: var(--helix-radius);
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 200, 255, 0.08) 0%, transparent 70%),
		linear-gradient(180deg, rgba(11, 17, 24, 0.98) 0%, rgba(5, 7, 10, 0.98) 100%);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 200, 255, 0.08);
}

.helix-age-gate__eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--helix-font-heading);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--helix-accent-cyan);
}

.helix-age-gate__title {
	margin: 0 0 1rem;
	font-family: var(--helix-font-heading);
	font-size: clamp(1.1rem, 2.4vw, 1.45rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--helix-text-primary);
}

.helix-age-gate__content p {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--helix-text-secondary);
}

.helix-age-gate__notice-label,
.helix-age-gate__subheading {
	margin: 1rem 0 0.75rem;
	font-family: var(--helix-font-heading);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--helix-text-primary);
}

.helix-age-gate__checks {
	display: grid;
	gap: 0.65rem;
	margin-top: 0.75rem;
}

.helix-age-gate__check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--helix-radius-sm);
	background: rgba(255, 255, 255, 0.02);
	cursor: pointer;
}

.helix-age-gate__check span,
.helix-age-gate__check a {
	font-size: 0.86rem;
	line-height: 1.6;
	color: var(--helix-text-secondary);
}

.helix-age-gate__check a {
	color: var(--helix-accent-cyan);
	text-decoration: underline;
}

.helix-age-gate__check input {
	margin-top: 0.18rem;
	accent-color: var(--helix-accent-cyan);
	flex-shrink: 0;
}

.helix-age-gate__error {
	margin: 0.85rem 0 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid rgba(255, 120, 120, 0.35);
	border-radius: var(--helix-radius-sm);
	font-size: 0.84rem;
	line-height: 1.55;
	color: #ffb4b4;
	background: rgba(255, 120, 120, 0.08);
}

.helix-age-gate__error[hidden] {
	display: none !important;
}

.helix-age-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.35rem;
}

.helix-age-gate__actions .helix-btn {
	flex: 1 1 180px;
	justify-content: center;
}

@media (max-width: 768px) {
	.helix-age-gate {
		padding: 0.75rem;
	}

	.helix-age-gate__actions .helix-btn {
		flex: 1 1 100%;
	}
}
