/*
 * Age & Compliance Gate.
 *
 * Colours come from the three tokens the plugin prints in <head>, so the
 * settings screen drives everything without editing this file.
 */

.acg {
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 2.5rem);
	background: var(--acg-bg, #0b0d18);
	color: var(--acg-text, #fff);
	overflow-y: auto;
	font-family: inherit;
	line-height: 1.5;
}

.acg__inner {
	display: grid;
	justify-items: center;
	gap: 1.5rem;
	width: 100%;
	max-width: 34rem;
	text-align: center;
}

.acg__logo {
	max-height: 72px;
	width: auto;
	height: auto;
}

.acg__card {
	width: 100%;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-align: start;
}

.acg__eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	padding-block: 0.45rem;
	padding-inline: 0.9rem calc(0.9rem - 0.14em);
	border-radius: 999px;
	background: var(--acg-accent, #2b6bff);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.25;
	text-transform: uppercase;
}

.acg__title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.15;
	color: inherit;
}

.acg__intro {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	opacity: 0.78;
}

/* Whole row is a hit target — a 13px checkbox is not one. */
.acg__check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.acg__check:hover {
	border-color: var(--acg-accent, #2b6bff);
	background: rgba(255, 255, 255, 0.07);
}

.acg__check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--acg-accent, #2b6bff);
	cursor: pointer;
}

.acg__check span {
	flex: 1;
}

.acg__check strong {
	font-weight: 700;
}

.acg__submit {
	width: 100%;
	margin-top: 0.5rem;
	padding: 1rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--acg-accent, #2b6bff);
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.acg__submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.acg__submit:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.acg__submit:focus-visible,
.acg__check input:focus-visible,
.acg__exit a:focus-visible {
	outline: 2px solid var(--acg-accent, #2b6bff);
	outline-offset: 3px;
}

.acg__fine {
	margin: 1.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1.6;
	opacity: 0.6;
}

.acg__exit {
	margin: 0;
	font-size: 0.8125rem;
}

.acg__exit a {
	color: inherit;
	opacity: 0.7;
	text-decoration: underline;
}

.acg__exit a:hover {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.acg,
	.acg__submit,
	.acg__check {
		transition: none;
	}
}
