/*
 * Age Gate — It's a Secret
 * Two-step full-screen age verification overlay:
 *   Step 1: brand header + question card
 *   Step 2: full-screen video + sound reveal
 * All classes are semantic and namespaced with "age-gate-" to avoid
 * colliding with theme / page-builder styles.
 */

:root {
	--age-gate-gold: #d4af37;
	--age-gate-gold-light: #f4e5b2;
	--age-gate-gold-deep: #9c7a25;
	--age-gate-black: #0a0a0a;
	--age-gate-card-bg: #151515;
	--age-gate-white: #f7f2e7;
	--age-gate-gray: #9a9a9a;
}

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

.age-gate-preview-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2147483647;
	background: #d63638;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.8rem;
	line-height: 1.4;
	text-align: center;
	padding: 0.5rem 0.75rem;
}

.age-gate-preview-banner a {
	color: #fff;
	text-decoration: underline;
}

.age-gate-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	background: var(--age-gate-black);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.age-gate-step {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.age-gate-step[hidden] {
	display: none;
}

.age-gate-step.age-gate-step-leaving {
	opacity: 0;
	pointer-events: none;
}

.age-gate-overlay.age-gate-is-leaving {
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

/* ---------- Step 1: question card ---------- */

.age-gate-step-question {
	background: var(--age-gate-black);
}

.age-gate-step-question .age-gate-scrim {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 60%);
}

.age-gate-step-inner {
	position: relative;
	z-index: 1;
	width: min(92vw, 460px);
	text-align: center;
	padding: 1.5rem;
	animation: age-gate-fade-up 0.7s ease both;
}

@keyframes age-gate-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.age-gate-brand {
	margin-bottom: 1.75rem;
}

.age-gate-brand-logo {
	max-width: 100%;
	max-height: 120px;
	width: auto;
	height: auto;
}

.age-gate-brand-name {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 900;
	font-size: clamp(2.4rem, 9vw, 3.4rem);
	line-height: 1.05;
	color: var(--age-gate-white);
}

.age-gate-brand-tagline {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: clamp(1.15rem, 4.2vw, 1.6rem);
	color: var(--age-gate-gold);
	margin-top: 0.15rem;
}

.age-gate-card {
	background: var(--age-gate-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 2.25rem 1.75rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.age-gate-eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--age-gate-gold);
}

.age-gate-question {
	margin: 0 0 0.75rem;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 6vw, 2.1rem);
	line-height: 1.2;
	color: var(--age-gate-white);
}

.age-gate-subheading {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--age-gate-gray);
}

.age-gate-actions {
	display: flex;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
}

.age-gate-btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	appearance: none;
	border-radius: 10px;
	padding: 0.85rem 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.age-gate-btn:focus-visible {
	outline: 2px solid var(--age-gate-gold-light);
	outline-offset: 3px;
}

.age-gate-btn-icon {
	width: 18px;
	height: 18px;
	flex: none;
}

.age-gate-btn-enter {
	border: 1px solid var(--age-gate-gold);
	background: var(--age-gate-gold);
	color: #1a1305;
	box-shadow: 0 6px 22px rgba(212, 175, 55, 0.25);
}

.age-gate-btn-enter:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}

.age-gate-btn-exit {
	border: 1px solid rgba(247, 242, 231, 0.35);
	background: transparent;
	color: var(--age-gate-white);
}

.age-gate-btn-exit:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(247, 242, 231, 0.6);
}

.age-gate-disclaimer {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.5;
	color: rgba(154, 154, 154, 0.85);
}

/* ---------- Step 2: video reveal ---------- */

.age-gate-step-video {
	background: var(--age-gate-black);
}

.age-gate-video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.age-gate-video-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translate(-50%, -50%);
	object-fit: contain;
}

.age-gate-poster-fallback {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: -1;
}

/* ---------- Optional gold script overlay on the video (Step 2) ---------- */

.age-gate-video-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.age-gate-video-overlay.age-gate-overlay-visible {
	opacity: 1;
}

.age-gate-logo-rays {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 340px;
	height: 340px;
	background:
		repeating-conic-gradient(
			from 0deg,
			rgba(244, 229, 178, 0.9) 0deg 0.6deg,
			transparent 0.6deg 6deg
		);
	border-radius: 50%;
	-webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, transparent 72%);
	mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, transparent 72%);
	mix-blend-mode: screen;
	animation: age-gate-spin 50s linear infinite;
	opacity: 0.85;
}

@keyframes age-gate-spin {
	to {
		transform: rotate(360deg);
	}
}

.age-gate-logo-wordmark {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.age-gate-logo-text {
	position: relative;
	font-family: "Yellowtail", Georgia, "Times New Roman", cursive, serif;
	font-weight: 400;
	font-size: clamp(2.75rem, 11vw, 4.25rem);
	line-height: 1;
	letter-spacing: 0.01em;
	background: linear-gradient(180deg, var(--age-gate-gold-light) 0%, var(--age-gate-gold) 55%, var(--age-gate-gold-deep) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 28px rgba(212, 175, 55, 0.4);
}

.age-gate-logo-flourish {
	display: block;
	width: min(78vw, 340px);
	height: 34px;
	margin-top: -0.35rem;
	filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
}


.age-gate-skip {
	position: absolute;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	z-index: 2;
	appearance: none;
	border: 1px solid rgba(247, 242, 231, 0.4);
	background: rgba(0, 0, 0, 0.35);
	color: var(--age-gate-white);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.age-gate-skip.age-gate-skip-visible {
	opacity: 1;
}

.age-gate-skip[hidden] {
	display: none;
}

@media (min-width: 560px) {
	.age-gate-card {
		padding: 2.75rem 2.5rem;
	}
}
