/* =========================================================
   BrandStar – Åldersverifiering (25 år)
   ========================================================= */

/* Döljer sidan direkt vid laddning tills besökaren svarat (ingen "flash") */
html.ag-pending, html.ag-pending body { overflow: hidden !important; }
html.ag-pending::before {
	content: "";
	position: fixed; inset: 0;
	background: #121D23;
	z-index: 2147483646;
}

.agegate {
	position: fixed; inset: 0;
	z-index: 2147483647;
	display: flex; align-items: center; justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(201,165,129,.14), transparent 60%),
		rgba(18,29,35,.97);
	font-family: "Jost", sans-serif;
	color: #CECECE;
	text-align: center;
	opacity: 0;
	transition: opacity .4s ease;
}
.agegate.is-visible { opacity: 1; }
.agegate.is-leaving { opacity: 0; pointer-events: none; }

.agegate__box {
	width: 100%; max-width: 620px;
	margin: auto;
	padding: 48px 40px 40px;
	border: 1px solid rgba(201,165,129,.45);
	background: #121D23;
	box-shadow: 0 30px 80px rgba(0,0,0,.5);
	position: relative;
}
.agegate__box::before {
	content: "";
	position: absolute; inset: 8px;
	border: 1px solid rgba(201,165,129,.15);
	pointer-events: none;
}

.agegate__logo { width: 240px; max-width: 70%; height: auto; margin: 0 auto 28px; display: block; }

.agegate__title {
	font-family: "Bebas Neue", sans-serif;
	font-weight: 400;
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.1;
	letter-spacing: .02em;
	color: #FFFFFF;
	margin: 0 0 8px;
}
.agegate__tagline {
	font-style: italic;
	color: #C9A581;
	font-size: 17px;
	margin: 0 0 24px;
}
.agegate__text { font-size: 16px; line-height: 1.6; margin: 0 0 6px; }

.agegate__divider {
	width: 60px; height: 1px;
	background: #C9A581;
	margin: 28px auto;
	border: 0;
}

.agegate__question {
	font-family: "Bebas Neue", sans-serif;
	font-weight: 400;
	font-size: clamp(26px, 4.5vw, 34px);
	letter-spacing: .04em;
	color: #C9A581;
	margin: 0 0 20px;
}

.agegate__actions { display: flex; flex-direction: column; gap: 12px; }

.agegate__btn {
	display: block; width: 100%;
	padding: 16px 20px;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	border: 1px solid #C9A581;
	transition: background-color .25s, color .25s, border-color .25s;
}
.agegate__btn--yes { background: #C9A581; color: #121D23; }
.agegate__btn--yes:hover, .agegate__btn--yes:focus-visible { background: #E4CCB4; border-color: #E4CCB4; }
.agegate__btn--no { background: transparent; color: #CECECE; border-color: rgba(255,255,255,.25); }
.agegate__btn--no:hover, .agegate__btn--no:focus-visible { color: #FFFFFF; border-color: #FFFFFF; }
.agegate__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

.agegate__footer { margin-top: 28px; font-size: 14px; line-height: 1.6; }
.agegate__footer strong { display: block; color: #FFFFFF; font-weight: 500; letter-spacing: .04em; }

.agegate__denied { display: none; }
.agegate.is-denied .agegate__form { display: none; }
.agegate.is-denied .agegate__denied { display: block; }
.agegate__denied p { font-size: 17px; line-height: 1.7; margin: 0; }

@media (max-width: 575px) {
	.agegate__box { padding: 36px 22px 28px; }
	.agegate__text { font-size: 15px; }
	.agegate__btn { font-size: 14px; letter-spacing: .08em; }
}

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