/* switch: SX_LANDING */
/* Theme .226 (owner, 13 Nov 2026 audit F1): ad landing block (inc/sx-landing.php), loaded only on a landing page such as
 * /drama-challenge/. The sign-up button sits on the first phone screen; on phones the same button stays fixed at the
 * bottom once the first one has scrolled away. Colours come from the theme tokens, so dark mode follows. */

.sx-land { padding-block-end: clamp(20px, 3vw, 36px); }
.sx-land__inner { max-width: 760px; text-align: center; }
.sx-land .bm-eyebrow { margin-inline: auto; }
.sx-land__title { margin: 0 auto; }
.sx-land__title > span { display: block; }

.sx-land__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-block-start: clamp(18px, 2.4vw, 28px);
}
html body .sx-land__actions .bm-btn { margin: 0; }
.sx-land__cta { min-width: 260px; justify-content: center; gap: 10px; font-weight: 800; }

.sx-land__google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px 24px;
	border: 1px solid var(--sx-line-strong, rgba(28, 20, 16, 0.18));
	border-radius: 999px;
	background: var(--sx-surface, #FFFFFF);
	color: var(--sx-ink, #1C1410);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sx-land__google:hover, .sx-land__google:focus-visible { border-color: var(--sx-clay, #FD7702); box-shadow: 0 0 0 3px var(--primary-soft, rgba(253, 119, 2, 0.10)); }
.sx-land__google svg { flex: 0 0 auto; }
.sx-land__google[hidden] { display: none; }

.sx-land__gift {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 18px auto 0;
	padding: 10px 16px;
	border-radius: 14px;
	background: var(--primary-soft, rgba(253, 119, 2, 0.10));
	color: var(--sx-ink-2, #3F352E);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-align: start;
}
.sx-land__gift svg { flex: 0 0 auto; color: var(--sx-clay-text, #C2410C); }
.sx-land__gift b { color: var(--sx-ink, #1C1410); }

.sx-land__more { margin: 14px 0 0; font-size: 0.9375rem; }
.sx-land__more a { color: var(--sx-clay-text, #C2410C); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.sx-land-rules { padding-block-start: clamp(12px, 2vw, 24px); scroll-margin-top: calc(var(--header-h, 72px) + 16px); }
.sx-land-end { padding-block: 8px clamp(40px, 6vw, 72px); text-align: center; }
.sx-land-end .sx-land__cta { display: inline-flex; }

/* the phone bar: hidden on computers */
.sx-land-bar { display: none; }

@media (max-width: 760px) {
	.sx-land__actions { flex-direction: column; align-items: stretch; gap: 10px; }
	.sx-land__cta, .sx-land__google { width: 100%; min-width: 0; }
	.sx-land__gift { display: flex; margin-block-start: 14px; }

	.sx-land-bar {
		display: block;
		position: fixed;
		z-index: 900;
		inset-inline: 0;
		bottom: 0;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--sx-surface, #FFFFFF);
		border-block-start: 1px solid var(--sx-line, rgba(28, 20, 16, 0.10));
		box-shadow: 0 -8px 24px rgba(28, 20, 16, 0.08);
	}
	.sx-land-bar.is-hidden { display: none; }
	.sx-land-bar__btn { display: flex; width: 100%; min-height: 50px; justify-content: center; align-items: center; font-weight: 800; margin: 0; }
	/* the cookie card also sits at the bottom: the bar steps aside while it is open */
	body:has(#ntTrackingConsent:not([hidden])) .sx-land-bar { display: none; }
	/* room under the footer so the bar never covers its last links */
	body.sx-landing-page { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
