/* ===================================================================
   Universal Landing — base styles
   CSS custom properties are the theming hook the constructor UI will
   write into (colors / fonts / radius) without touching markup.
   =================================================================== */

:root {
	--ul-color-primary: #ff5a1f;
	--ul-color-primary-hover: #e64e15;
	--ul-color-text: #1a1a1a;
	--ul-color-muted: #6b6b6b;
	--ul-color-danger: #d92d20;
	--ul-color-bg: #ffffff;
	--ul-color-card-bg: #ffffff;
	--ul-color-border: #e4e4e4;
	--ul-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ul-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: var(--ul-font-family);
	color: var(--ul-color-text);
	background: var(--ul-color-bg);
	-webkit-font-smoothing: antialiased;
	/* The honeypot field (.order-form__hp below) hides itself with
	   left: -9999px — harmless under LTR, but under dir="rtl" (Arabic) the
	   browser's RTL scroll-origin semantics turn that huge negative offset
	   into a genuinely reachable horizontal scroll region (thousands of px
	   of blank space a visitor can swipe/scroll into), instead of just
	   clipping off-screen like it does in LTR. This is the standard,
	   safe guard against any such off-screen-positioning technique ever
	   creating reachable overflow, regardless of text direction. */
	overflow-x: hidden;
}

/* ---- landing blocks (existing markup — layout only, never change the HTML) ---- */

.block {
	display: block;
	width: 100%;
	line-height: 0;
}

.block img {
	display: block;
	width: 100%;
	height: auto;
}

a.interactive-block {
	cursor: pointer;
}

/* ---- order form section ---- */

.order-section {
	padding: 32px 16px 48px;
	background: var(--ul-color-bg);
}

.order-card {
	max-width: 420px;
	margin: 0 auto;
	padding: 24px;
	background: var(--ul-color-card-bg);
	border: 1px solid var(--ul-color-border);
	border-radius: var(--ul-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	position: relative;
}

/* ---- popup overlay (generated by the constructor at the end of <body>) ----
   Replaces the old data-mode="popup" mechanism, which worked by hiding the
   inline order section outright — so choosing "popup" made the page's main
   form disappear. Panes in here are their own form instances; inline forms
   stay in the page flow untouched. */

/* Must come first and stay: a class rule setting `display` outranks the UA
   stylesheet's `[hidden] { display: none }`, so without this the overlay is
   permanently open — covering the page and swallowing every click. */
.ul-popup[hidden],
.ul-popup__pane[hidden] { display: none; }

.ul-popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
	background: rgba(0, 0, 0, 0.6);
}

/* html.ul-popup-open freezes the page behind the overlay. */
.ul-popup-open,
.ul-popup-open body { overflow: hidden; }

.ul-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 92vh;
	overflow-y: auto;
}

.ul-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	width: 34px;
	height: 34px;
	line-height: 1;
	font-size: 1.6rem;
	color: var(--ul-color-muted);
	background: none;
	border: none;
	cursor: pointer;
}

/* The order section inside the overlay is the same markup as an inline one,
   minus the page padding it would otherwise add around the card. */
.ul-popup .order-section { padding: 0; background: none; }
.ul-popup .ul-game { margin: 0 auto; }

.order-card__image {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: contain;
	margin: 0 0 14px;
	border-radius: calc(var(--ul-radius) / 2);
}

.order-card__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	color: var(--ul-color-text);
}

.order-card__subtitle {
	margin: 0 0 18px;
	font-size: 0.95rem;
	line-height: 1.45;
	text-align: center;
	color: var(--ul-color-muted);
}

.order-card__product {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
}

.order-card__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 1.1rem;
}

.order-card__price-old {
	color: var(--ul-color-muted);
	text-decoration: line-through;
}

.order-card__price-new {
	color: var(--ul-color-primary);
	font-weight: 700;
	font-size: 1.4rem;
}

.order-form__field {
	margin-bottom: 14px;
}

.order-form__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	color: var(--ul-color-muted);
}

.order-form__field input {
	width: 100%;
	padding: 12px 14px;
	font-size: 1rem;
	border: 1px solid var(--ul-color-border);
	border-radius: calc(var(--ul-radius) / 2);
	background: #fff;
	color: var(--ul-color-text);
}

.order-form__field input:focus {
	outline: none;
	border-color: var(--ul-color-primary);
	box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.order-form__field input.iti__tel-input,
.iti { width: 100%; }

.order-form__submit {
	width: 100%;
	padding: 14px 18px;
	margin-top: 6px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	background: var(--ul-color-primary);
	border: none;
	border-radius: calc(var(--ul-radius) / 2);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.order-form__submit:hover { background: var(--ul-color-primary-hover); }
.order-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.order-form__error {
	margin: 12px 0 0;
	font-size: 0.9rem;
	color: var(--ul-color-danger);
	text-align: center;
}

.order-form__field--invalid input {
	border-color: var(--ul-color-danger);
}

/* Honeypot: still present in the accessibility tree layout (which is what
   tricks unsophisticated bots into filling it in), but visually hidden via
   the standard clip-based technique rather than a huge negative offset —
   an earlier version used `left: -9999px`, which is harmless under LTR but
   under dir="rtl" (Arabic) turned into a genuinely reachable ~10000px-wide
   horizontal scroll region (found while testing every supported language),
   since RTL scroll-origin semantics don't clip a large negative offset the
   same way LTR does. This pattern hides the element identically regardless
   of text direction, since it never moves the element off the layout flow
   at all — `clip` + a 1px box removes it from the visible/paintable area
   without needing any coordinate trick that could vary by direction. */
.order-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- floating CTA button (constructor toggle; harmless if unused) ---- */

.floating-cta {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 40;
	padding: 14px 22px;
	font-weight: 700;
	color: #fff;
	background: var(--ul-color-primary);
	border: none;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.floating-cta:hover { background: var(--ul-color-primary-hover); }

/* ---- footer (generated per landing; see assets/js nothing — build-time only) ---- */

.ul-footer {
	padding: 24px 16px 32px;
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--ul-color-muted);
	border-top: 1px solid var(--ul-color-border);
}

.ul-footer p { margin: 0 0 6px; }
.ul-footer p:last-child { margin-bottom: 0; }

/* ---- countdown timer bar (constructor toggle) ---- */

.ul-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 16px;
	background: var(--ul-color-text);
	color: #fff;
	font-size: 0.85rem;
	text-align: center;
}

.ul-timer__digits {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Same countdown, shown inline inside the order card instead of as a full-width bar. */
.ul-timer--inline {
	background: none;
	color: var(--ul-color-danger);
	padding: 0 0 14px;
	font-size: 0.95rem;
}

/* ---- fake "recent order" toast (constructor toggle) ---- */

.ul-social-proof {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 300px;
	padding: 10px 14px;
	background: #fff;
	color: var(--ul-color-text);
	border-radius: calc(var(--ul-radius) / 2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	font-size: 0.82rem;
	line-height: 1.35;
	transform: translateY(120%);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
	pointer-events: none;
}

.ul-social-proof.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.ul-social-proof__dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2fb344;
}

/* ---- thank-you page ---- */

.thanks-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: #f5f5f7;
}

.thanks-card {
	width: 100%;
	max-width: 440px;
	padding: 40px 32px;
	background: var(--ul-color-card-bg);
	border-radius: calc(var(--ul-radius) * 1.4);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
	text-align: center;
	animation: thanksCardIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes thanksCardIn {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.thanks-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--ul-color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: thanksIconPop 0.6s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

@keyframes thanksIconPop {
	from { opacity: 0; transform: scale(0.5); }
	to { opacity: 1; transform: scale(1); }
}

.thanks-icon svg {
	width: 34px;
	height: 34px;
}

.thanks-title {
	margin: 0 0 10px;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--ul-color-text);
}

.thanks-message {
	margin: 0 0 24px;
	color: var(--ul-color-muted);
	font-size: 1rem;
	line-height: 1.5;
}

.thanks-details {
	margin: 0 0 28px;
	padding: 4px 18px;
	background: var(--ul-color-bg);
	border: 1px solid var(--ul-color-border);
	border-radius: var(--ul-radius);
	text-align: left;
}

[dir="rtl"] .thanks-details { text-align: right; }

.thanks-details__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
}

.thanks-details__row + .thanks-details__row {
	border-top: 1px solid var(--ul-color-border);
}

.thanks-details__label {
	flex: 0 0 auto;
	color: var(--ul-color-muted);
	font-size: 0.85rem;
}

.thanks-details__value {
	font-weight: 700;
	color: var(--ul-color-text);
	text-align: right;
	word-break: break-word;
}

[dir="rtl"] .thanks-details__value { text-align: left; }

.thanks-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 18px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--ul-color-primary);
	border: none;
	border-radius: calc(var(--ul-radius) / 2);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.thanks-back:hover { background: var(--ul-color-primary-hover); }

/* ---- video block templates (extra blocks: video-testimonial / video-carousel) ---- */

.ul-video-block {
	padding: 20px 16px;
}

.ul-video-block--single {
	max-width: 480px;
	margin: 0 auto;
}

.ul-video-block--carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.ul-video-block__item {
	flex: 0 0 auto;
	width: min(78vw, 320px);
	scroll-snap-align: start;
}

.ul-video-block--single .ul-video-block__item {
	width: 100%;
}

.ul-video-block__video {
	display: block;
	width: 100%;
	border-radius: var(--ul-radius);
	background: #000;
	aspect-ratio: 9 / 16;
	object-fit: cover;
}

.ul-video-block__caption {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--ul-color-muted);
	text-align: center;
}

/* ---- engagement game (roulette / shell game) gating the order form ----
   Both games share one card shell (.ul-game) and one reveal panel
   (.ul-game__result); only the playfield in the middle differs. Everything is
   themed from the same --ul-color-* / --ul-radius custom properties the rest
   of the page uses, so a landing's colour scheme carries into the game with
   no extra config. */

.ul-game {
	position: relative;
	max-width: 460px;
	margin: 24px auto;
	padding: 22px 18px 26px;
	text-align: center;
	background: var(--ul-color-card-bg);
	border: 1px solid var(--ul-color-border);
	border-radius: var(--ul-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ul-game__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 5px 12px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--ul-color-primary);
	border-radius: 999px;
}

.ul-game__title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 800;
	color: var(--ul-color-text);
}

.ul-game__prompt {
	margin: 0 0 14px;
	font-size: 0.95rem;
	color: var(--ul-color-muted);
}

/* ---- roulette ---- */

.ul-game__wheel-wrap {
	position: relative;
	width: min(268px, 74vw);
	height: min(268px, 74vw);
	margin: 18px auto 26px;
}

.ul-game__wheel {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	/* 8 sectors of 45deg, starting at 12 o'clock and running clockwise — the
	   same geometry gameData.ts / game.js use to decide where to stop. Even
	   sector indices land on the primary wedge (see --on-primary below). */
	background: conic-gradient(
		var(--ul-color-primary) 0deg 45deg,
		#fff7f1 45deg 90deg,
		var(--ul-color-primary) 90deg 135deg,
		#fff7f1 135deg 180deg,
		var(--ul-color-primary) 180deg 225deg,
		#fff7f1 225deg 270deg,
		var(--ul-color-primary) 270deg 315deg,
		#fff7f1 315deg 360deg
	);
	box-shadow:
		0 0 0 7px #ffd371,
		0 0 0 11px #e0932c,
		0 16px 34px rgba(0, 0, 0, 0.26);
	transition: transform 3.4s cubic-bezier(0.12, 0.72, 0.12, 1);
}

.ul-game__sector {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	pointer-events: none;
	transform: rotate(calc(var(--ul-sector) * 45deg + 22.5deg));
}

.ul-game__sector b {
	margin-top: 16px;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--ul-color-text);
}

.ul-game__sector--on-primary b {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ul-game__pointer {
	position: absolute;
	top: -12px;
	left: 50%;
	z-index: 3;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border-left: 13px solid transparent;
	border-right: 13px solid transparent;
	border-top: 26px solid #26303d;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.ul-game__hub {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 52px;
	height: 52px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	box-shadow:
		0 0 0 5px #e0932c,
		0 4px 12px rgba(0, 0, 0, 0.25);
}

.ul-game__action {
	min-width: 200px;
	padding: 15px 32px;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, var(--ul-color-primary) 0%, var(--ul-color-primary-hover) 100%);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	animation: ulGamePulse 1.8s ease-in-out infinite;
}

.ul-game__action:disabled {
	opacity: 0.5;
	cursor: default;
	animation: none;
}

@keyframes ulGamePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.045); }
}

/* ---- shell game ---- */

.ul-game__cups {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 14px;
	/* The top margin is the clearance a lifted cup needs (see .is-lifted
	   below) — without it the raised cup overlaps the widget's own heading. */
	margin: 64px 0 24px;
}

.ul-game__slot {
	position: relative;
	width: min(88px, 26vw);
	height: min(104px, 31vw);
}

/* ground shadow, so the cups read as standing on a surface rather than floating */
.ul-game__slot::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 86%;
	height: 12px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.18);
	filter: blur(3px);
}

.ul-game__prize {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	padding: 7px 11px;
	font-size: 0.95rem;
	font-weight: 900;
	white-space: nowrap;
	color: var(--ul-color-primary);
	background: #fff;
	border: 2px solid var(--ul-color-primary);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ul-game__cup {
	position: absolute;
	inset: 0;
	z-index: 2;
	padding: 0;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, #ffa273 0%, var(--ul-color-primary) 45%, var(--ul-color-primary-hover) 100%);
	clip-path: polygon(27% 3%, 73% 3%, 89% 82%, 100% 95%, 100% 100%, 0 100%, 0 95%, 11% 82%);
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
	transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.ul-game__cup-shine {
	position: absolute;
	top: 10%;
	left: 35%;
	width: 11%;
	height: 68%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.ul-game__cup:hover:not(:disabled) { transform: translateY(-7px); }
.ul-game__cup:disabled { cursor: default; }

/* Raise the whole picked slot above its neighbours, so neither the lifted cup
   nor the prize badge under it is painted over by the cup next to it. */
.ul-game__slot.is-lifted {
	z-index: 4;
}

.ul-game__slot.is-lifted .ul-game__cup {
	transform: translateY(-58px) rotate(-8deg);
}

/* Cup 1 and cup 3 trade places over cup 2 and come back. They arc at
   different heights (and sit at different z-indexes) so they visually pass
   over one another instead of merging into a single cup at the midpoint. */
.ul-game--shells.is-shuffling .ul-game__slot:nth-child(1) { z-index: 3; animation: ulCupSwapA 1.1s ease-in-out; }
.ul-game--shells.is-shuffling .ul-game__slot:nth-child(2) { z-index: 1; animation: ulCupSwapB 1.1s ease-in-out; }
.ul-game--shells.is-shuffling .ul-game__slot:nth-child(3) { z-index: 2; animation: ulCupSwapC 1.1s ease-in-out; }

@keyframes ulCupSwapA {
	0% { transform: translate(0, 0); }
	25% { transform: translate(calc(50% + 7px), -34px); }
	50% { transform: translate(calc(200% + 28px), 0); }
	75% { transform: translate(calc(150% + 21px), -34px); }
	100% { transform: translate(0, 0); }
}

@keyframes ulCupSwapB {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-12px); }
	70% { transform: translateY(-12px); }
}

@keyframes ulCupSwapC {
	0% { transform: translate(0, 0); }
	25% { transform: translate(calc(-50% - 7px), -10px); }
	50% { transform: translate(calc(-200% - 28px), 0); }
	75% { transform: translate(calc(-150% - 21px), -10px); }
	100% { transform: translate(0, 0); }
}

/* ---- shared reveal panel ---- */

.ul-game__result {
	max-width: 340px;
	margin: 20px auto 0;
	padding: 16px 18px;
	background: var(--ul-color-card-bg);
	border: 2px dashed var(--ul-color-primary);
	border-radius: var(--ul-radius);
	animation: ulGameReveal 0.35s ease;
}

@keyframes ulGameReveal {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: none; }
}

.ul-game__result-label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ul-color-muted);
}

.ul-game__result-value {
	display: block;
	margin-top: 2px;
	font-size: 2.4rem;
	line-height: 1.1;
	font-weight: 900;
	color: var(--ul-color-primary);
}

.ul-game__result-note {
	display: block;
	margin-top: 8px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ul-color-text);
}

.ul-game__result-label:empty,
.ul-game__result-value:empty,
.ul-game__result-note:empty { display: none; }

/* ---- the gated order form ---- */

.ul-order-gate {
	animation: ulGateIn 0.45s ease;
}

@keyframes ulGateIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Won discount, carried into the order card so the visitor can still see what
   they're getting once the form replaces the game on screen. Filled by game.js
   only — stays hidden and empty on every landing without a game. */
.order-card__award {
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 1rem;
	font-weight: 800;
	text-align: center;
	color: var(--ul-color-primary);
	background: var(--ul-color-card-bg);
	border: 1px dashed var(--ul-color-primary);
	border-radius: calc(var(--ul-radius) / 1.6);
}

@media (prefers-reduced-motion: reduce) {
	.ul-game__action { animation: none; }
	.ul-game__wheel { transition-duration: 0.8s; }
	.ul-game__result,
	.ul-order-gate { animation: none; }
	.ul-game--shells.is-shuffling .ul-game__slot { animation-duration: 0.3s; }
}

/* ---- quiz / survey step (assets/js/quiz.js) ----
   One card, two placements: `--intro` is a fixed layer covering the landing
   until it's answered, otherwise it's an ordinary block in the flow. It never
   hides or rewrites the landing's own markup either way. */

.ul-quiz[hidden] { display: none; }

.ul-quiz {
	padding: 28px 16px 36px;
	background: var(--ul-color-bg);
}

.ul-quiz--intro {
	position: fixed;
	inset: 0;
	z-index: 900;
	overflow-y: auto;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.ul-quiz-open,
.ul-quiz-open body { overflow: hidden; }

.ul-quiz__card {
	width: 100%;
	max-width: 460px;
	margin: auto;
	padding: 24px 20px 26px;
	background: var(--ul-color-card-bg);
	border: 1px solid var(--ul-color-border);
	border-radius: var(--ul-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ul-quiz__step {
	display: block;
	margin-bottom: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ul-color-primary);
}

.ul-quiz__bar {
	height: 6px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: var(--ul-color-border);
	overflow: hidden;
}

.ul-quiz__bar-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--ul-color-primary);
	transition: width 0.3s ease;
}

.ul-quiz__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ul-color-text);
}

.ul-quiz__subtitle {
	margin: 0 0 16px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--ul-color-muted);
}

.ul-quiz__questions {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ul-quiz__question[hidden] { display: none; }

.ul-quiz__q-text {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ul-color-text);
}

.ul-quiz__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ul-quiz__option {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	text-align: left;
	color: var(--ul-color-text);
	background: var(--ul-color-card-bg);
	border: 2px solid var(--ul-color-border);
	border-radius: calc(var(--ul-radius) / 1.4);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ul-quiz__option:hover { border-color: var(--ul-color-primary); }

.ul-quiz__option.is-selected {
	border-color: var(--ul-color-primary);
	color: var(--ul-color-primary);
}

[dir="rtl"] .ul-quiz__option { text-align: right; }

.ul-quiz__input {
	width: 100%;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--ul-color-text);
	background: #fff;
	border: 1px solid var(--ul-color-border);
	border-radius: calc(var(--ul-radius) / 2);
}

.ul-quiz__input:focus {
	outline: none;
	border-color: var(--ul-color-primary);
}

.ul-quiz__error {
	margin: 12px 0 0;
	font-size: 0.88rem;
	color: var(--ul-color-danger);
}

.ul-quiz__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.ul-quiz__back {
	padding: 10px 4px;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--ul-color-muted);
	background: none;
	border: none;
	cursor: pointer;
}

.ul-quiz__back[hidden] { display: none; }

.ul-quiz__next {
	margin-left: auto;
	min-width: 150px;
	padding: 13px 26px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--ul-color-primary);
	border: none;
	border-radius: 999px;
	cursor: pointer;
}

.ul-quiz__next:hover { background: var(--ul-color-primary-hover); }
.ul-quiz__next[hidden] { display: none; }

[dir="rtl"] .ul-quiz__next { margin-left: 0; margin-right: auto; }

.ul-quiz__done {
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ul-color-primary);
}

.ul-quiz__done[hidden] { display: none; }

/* The engagement game while it's still waiting on the quiz (chain quiz →
   game → form). Same reveal as .ul-order-gate. */
.ul-quiz-gate { animation: ulGateIn 0.45s ease; }

/* Quiz used as a standalone prelanding page (its own index.html). Centre the
   card vertically — there's nothing else on the page to give it context. */
.ul-prelanding {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.ul-quiz--prelanding {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
