/**
 * Backlot — Turnstile Multilayer Compositing (Brief C4.2.a-FINAL)
 *
 * Tutti i layer occupano 100% del .bkl-turnstile__stage con object-fit: contain.
 * Allineamento pixel-perfect: ogni asset PNG ha stessa canvas size del base,
 * quindi sovrapposti con inset:0 combaciano automaticamente.
 *
 * LCD video posizionato in % dentro il pillar (calibrate dal bbox alpha del knob).
 */

/* ============================================================
   1. BODY + STAGE (aspect-ratio locked)
   ============================================================ */
.bkl-turnstile-body {
	margin: 0; padding: 0;
	background: #0B0908;
	color: var(--backlot-text);
	overflow: hidden;
	font-family: var(--backlot-font-body);
	height: 100vh; height: 100dvh;
}
html:has(body.bkl-turnstile-body) { overflow: hidden; height: 100vh; height: 100dvh; }

.bkl-turnstile {
	position: fixed; inset: 0;
	width: 100vw; height: 100vh; height: 100dvh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(ellipse at 50% 30%, #1a1310 0%, #0B0908 70%), #0B0908;
}

.bkl-turnstile__stage {
	position: relative;
	width: 100vw;
	max-width: calc(100vh * 16 / 9);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	animation: bkl-stage-fadein 1200ms ease-out;
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__stage {
		max-width: 100vw;
		max-height: calc(100vw * 16 / 9);
		aspect-ratio: 9 / 16;
		/* Brief C4.2.a-FIX-v6: zoom mobile RIMOSSO.
		   La leggibilità del LCD pillar la garantisce ora l'hologram intro,
		   non serve più scalare lo stage. Proporzioni vere. */
	}
}
@keyframes bkl-stage-fadein { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   2. LAYERS — tutti 100% dello stage, allineati automaticamente
   ============================================================ */
.bkl-turnstile__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}
.bkl-turnstile__layer img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
}
/* Bar frame wrapper: img idle + video push, entrambi 100%/100% object-fit:contain.
   Background explicit transparent per evitare flash nero su alcuni browser. */
.bkl-turnstile__bar-img,
.bkl-turnstile__bar-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	pointer-events: none;
	background: transparent;
}
.bkl-turnstile__bar-video[hidden] { display: none; }
.bkl-turnstile__bar-img[hidden]   { display: none; }

.bkl-turnstile__layer--base { z-index: 1; }
.bkl-turnstile__layer--bar  {
	z-index: 3;
	transition: opacity 600ms ease-out;
	/* v1.15.13 FINAL — coords locked dall'user */
	position: absolute;
	top: 19.51%;
	left: 14.04%;
	width: 50.02%;
	height: 62.89%;
	filter:
		drop-shadow(0 6px 8px  rgba(0, 0, 0, 0.55))
		drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__layer--bar {
		top: 18.71%;
		left: -4.92%;
		width: 76.25%;
		height: 79.25%;
		filter:
			drop-shadow(0 4px 6px  rgba(0, 0, 0, 0.55))
			drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
	}
	/* Mobile: idle PNG sempre visibile, video webm sempre nascosto
	   (iOS Safari non supporta VP8 alpha → bg nero). Al success la PNG
	   ruota via CSS 3D perspective attorno al pivot — cross-browser. */
	.bkl-turnstile__bar-img {
		display: block !important;
		transform-origin: 30% 50%;      /* pivot nel PNG (canvas ~30% X, 50% Y) */
		transition: transform 1500ms cubic-bezier(0.2, 0.8, 0.3, 1);
	}
	.bkl-turnstile__bar-video {
		display: none !important;
	}
	.bkl-turnstile[data-state="success"] .bkl-turnstile__bar-img {
		transform: perspective(800px) rotateY(72deg);
	}
}
.bkl-turnstile__layer--knob { z-index: 4; transition: transform 200ms ease-out, filter 200ms ease-out; }

/* Mobile: il knob nel PNG è renderizzato leggermente più in alto di dove
   è stato calibrato il hitbox button. Lo abbasso del 3% per allineare. */
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__layer--knob img {
		transform: translateY(3%);
	}
}

/* v1.15.7: animazione bar è BAKED nel video 3D — la JS swappa src al success */

/* SR-only utility */
.bkl-sr-only {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   3. LCD VIDEO — sopra il PNG nella zona LCD del pillar
   Coordinate stimate: knob desktop 28.27%/58.27% width 4.76%
   LCD sta sopra il knob, stessa larghezza, più alto
   ============================================================ */
.bkl-turnstile__lcd {
	position: absolute;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
	border-radius: 4px / 6px;
	background: #050403;
	box-shadow:
		inset 0 0 14px rgba(0, 0, 0, 0.95),
		inset 0 1px 0 rgba(245, 198, 107, 0.06),
		0 1px 0 rgba(245, 198, 107, 0.18);
	transition: box-shadow 400ms ease-out;
	/* Desktop coords calibrate via debug drag (v1.14.5) */
	top: 36.62%;
	left: 26.93%;
	width: 7.11%;
	height: 18.77%;
	/* Rifrazione luce su LCD — glass reflection diagonale + smooth edges */
	border: 1px solid rgba(245, 198, 107, 0.12);
	box-shadow:
		inset 0 0 18px rgba(0, 0, 0, 0.95),
		inset 0 1px 0 rgba(245, 198, 107, 0.18),
		inset -1px 0 0 rgba(245, 198, 107, 0.08),
		0 0 0 1px rgba(0, 0, 0, 0.4),
		0 2px 6px rgba(0, 0, 0, 0.6);
}
/* Glass reflection overlay — diagonale top-left, subtle */
.bkl-turnstile__lcd::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 10;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.14) 0%,
		rgba(255, 255, 255, 0.04) 18%,
		transparent 35%,
		transparent 65%,
		rgba(0, 0, 0, 0.10) 100%
	);
	mix-blend-mode: screen;
	border-radius: inherit;
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__lcd {
		/* Mobile LCD v1.14.8 — drag-calibrato dall'utente via debug HUD */
		top: 51.11%;
		left: 14.02%;
		width: 11.37%;
		height: 9.63%;
	}
}

.bkl-turnstile__lcd-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	pointer-events: none;
}

/* Glow attorno LCD per success-premium */
.bkl-turnstile__lcd[data-lcd-state="success-premium"] {
	box-shadow:
		inset 0 0 14px rgba(0, 0, 0, 0.7),
		0 0 24px rgba(245, 198, 107, 0.7),
		0 0 60px rgba(245, 198, 107, 0.45);
	animation: bkl-premium-pulse 2s ease-in-out infinite;
}
@keyframes bkl-premium-pulse {
	0%, 100% { box-shadow: inset 0 0 14px rgba(0,0,0,0.7), 0 0 24px rgba(245,198,107,0.7),  0 0 60px rgba(245,198,107,0.45); }
	50%      { box-shadow: inset 0 0 14px rgba(0,0,0,0.7), 0 0 36px rgba(245,198,107,0.95), 0 0 90px rgba(245,198,107,0.7);  }
}

/* ============================================================
   4. KNOB BUTTON — bbox preciso (NON inset:0)
   Posizionato esattamente sopra il knob del PNG.
   No glow CSS (causava il "tutto giallo on hover").
   ============================================================ */
.bkl-turnstile__knob-button {
	position: absolute;
	z-index: 6;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	border-radius: 50%;
	transition: transform 180ms ease-out;
	/* Desktop knob v1.14.8 */
	top: 58.68%;
	left: 28.35%;
	width: 4.53%;
	height: 7.97%;
}
.bkl-turnstile__knob-button:hover,
.bkl-turnstile__knob-button:active,
.bkl-turnstile__knob-button:focus,
.bkl-turnstile__knob-button:focus-visible,
.bkl-turnstile__knob-button.is-pressed {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__knob-button {
		/* Mobile knob v1.14.8 — drag-calibrato dall'utente */
		top: 62.66%;
		left: 16.03%;
		width: 7.39%;
		height: 4.30%;
	}
}
.bkl-turnstile__knob-button:active,
.bkl-turnstile__knob-button.is-pressed {
	transform: scale(0.93);
}

/* ============================================================
   4b. KNOB GLOW PREMIUM — pulsante warm gold (no Windows-98 yellow)
   Posizionato ESATTAMENTE sopra il knob, scale ~2x per alone esteso.
   Multi-layer radial gradient + mix-blend screen + scale+opacity pulse.
   ============================================================ */
.bkl-turnstile__knob-glow {
	position: absolute;
	z-index: 5;                  /* SOPRA knob layer per essere sempre visibile */
	pointer-events: none;
	border-radius: 50%;
	aspect-ratio: 1 / 1;         /* PERFECT CIRCLE */
	/* CRITICAL FIX v1.15.4: SOLO radial-gradient. NIENTE box-shadow
	   (creava rettangolo gold-yellow sulla colonna), NIENTE mix-blend-mode. */
	background:
		radial-gradient(circle at center,
			rgba(255, 230, 160, 0.95) 0%,
			rgba(255, 200, 110, 0.70) 22%,
			rgba(245, 180, 80, 0.38) 42%,
			rgba(220, 150, 60, 0.12) 60%,
			transparent 78%);
	box-shadow: none;
	filter: blur(6px);
	opacity: 1;
	animation: bkl-knob-glow-pulse 2.5s ease-in-out infinite;
	transition: animation-duration 300ms ease-out, filter 300ms ease-out, opacity 400ms ease-out;
	/* Desktop: knob center = top 62.67%, left 30.61%.
	   Width 9% → left 30.61-4.5 = 26.11%; height % = 9*16/9 = 16% → top = 62.67-8 = 54.67% */
	top: 54.67%;
	left: 26.11%;
	width: 9%;
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__knob-glow {
		/* Mobile stage 9:16. Width 12% → height = 12*9/16 = 6.75%
		   → top 64.81-3.375 = 61.44%; left 19.72-6 = 13.72% */
		top: 61.44%;
		left: 13.72%;
		width: 12%;
	}
}
@keyframes bkl-knob-glow-pulse {
	0%, 100% {
		opacity: 0.75;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.30);
	}
}

/* Hover/focus: pulse accelerato — solo durata animazione + blur, niente colore. */
.bkl-turnstile:has(.bkl-turnstile__knob-button:hover) .bkl-turnstile__knob-glow,
.bkl-turnstile:has(.bkl-turnstile__knob-button:focus-visible) .bkl-turnstile__knob-glow {
	animation-duration: 1s;
	filter: blur(4px);
}

/* Hide glow quando non più idle (success/error/checking) */
.bkl-turnstile:not([data-state="idle"]) .bkl-turnstile__knob-glow {
	opacity: 0;
	transition: opacity 400ms ease-out;
}

/* ============================================================
   5. HINT WRAPPER + ARROW + TRANSITION (Brief C4.2.a-FIX-v4 / Fix 2)
   Wrapper contiene hint pill + arrow ↑ che bouncia verso il knob.
   Wrapper si nasconde su modal-open o stato non-idle.
   ============================================================ */
.bkl-turnstile__hint-wrapper {
	position: absolute;
	bottom: 6%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 7;
	display: flex;
	flex-direction: column-reverse;  /* arrow SOPRA pill (punta verso knob in alto) */
	align-items: center;
	gap: 6px;
	pointer-events: none;
	opacity: 0;
	animation:
		bkl-hint-fadein 600ms 1200ms ease-out forwards,
		bkl-hint-breathe 3.2s 1800ms ease-in-out infinite;
	transition: opacity 350ms ease-out;
}
.bkl-turnstile__hint {
	margin: 0;
	font-family: var(--backlot-font-serif);
	font-style: italic;
	font-size: clamp(14px, 1.6vw, 20px);
	color: var(--backlot-gold-soft);
	background: rgba(11, 9, 8, 0.65);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 10px 28px;
	border-radius: 999px;
	border: 1px solid rgba(245, 198, 107, 0.30);
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.bkl-turnstile__hint-arrow {
	display: block;
	font-size: clamp(20px, 2.4vw, 28px);
	line-height: 1;
	color: var(--backlot-gold);
	text-shadow: 0 0 12px rgba(245, 198, 107, 0.6);
	animation: bkl-arrow-bounce 1.4s ease-in-out infinite;
	font-weight: 700;
}
@keyframes bkl-hint-fadein {
	from { opacity: 0; transform: translateX(-50%) translateY(8px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bkl-hint-breathe {
	0%, 100% { opacity: 1;    }
	50%      { opacity: 0.78; }
}
@keyframes bkl-arrow-bounce {
	0%, 100% { transform: translateY(0);    opacity: 0.85; }
	50%      { transform: translateY(-8px); opacity: 1;    }
}
/* Hide quando modale aperta o quando si esce da idle */
.bkl-turnstile[data-modal-open="true"] .bkl-turnstile__hint-wrapper,
.bkl-turnstile:not([data-state="idle"]) .bkl-turnstile__hint-wrapper {
	opacity: 0 !important;
	animation-play-state: paused;
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__hint-wrapper {
		bottom: 4%;
		gap: 4px;
	}
	.bkl-turnstile__hint {
		font-size: 13px;
		padding: 8px 18px;
		max-width: calc(100vw - 32px);
		white-space: normal;
		text-align: center;
	}
	.bkl-turnstile__hint-arrow {
		font-size: 22px;
	}
}

/* ============================================================
   5b. HOLOGRAM INTRO (Brief C4.2.a-FIX-v5 / Fix 3)
   Animazione one-shot al page load: beam Remotion esce dall'LCD,
   clone ingrandito si materializza al centro, dissolve dopo 3s.
   NIENTE comportamento hologram durante consume flow (rimosso v1.15.4).
   ============================================================ */
/* Intro container: ALLINEATO ESATTAMENTE alla stage area (no banda nera).
   NON figlio dello stage (per evitare zoom mobile 2x), ma stesse coords. */
.bkl-turnstile__hologram-intro {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	max-width: calc(100vh * 16 / 9);
	max-width: calc(100dvh * 16 / 9);
	aspect-ratio: 16 / 9;
	z-index: 15;                 /* Sopra layer normali, sotto modal (1000) */
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__hologram-intro {
		width: 100vw;
		max-width: 100vw;
		max-height: calc(100vw * 16 / 9);
		aspect-ratio: 9 / 16;
	}
}
.bkl-turnstile__hologram-intro.is-active {
	visibility: visible;
	opacity: 1;
}

/* SVG BEAMS: 4 fasci anchored — LCD center → 4 angoli del clone hologram.
   Le coords (x1/y1/x2/y2) di ogni <line> sono settate via JS dal getBoundingClientRect.
   Stroke gradient gold + glow filter. Draw-on tramite stroke-dasharray. */
.bkl-turnstile__hologram-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
	opacity: 0;
	transition: opacity 350ms ease-out;
}
.bkl-turnstile__hologram-intro.beam-visible .bkl-turnstile__hologram-svg {
	opacity: 1;
}
.bkl-beam {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	transition: stroke-dashoffset 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bkl-turnstile__hologram-intro.beam-visible .bkl-beam {
	stroke-dashoffset: 0;
}
.bkl-turnstile__hologram-intro.beam-visible .bkl-beam--tl { transition-delay: 0ms;   }
.bkl-turnstile__hologram-intro.beam-visible .bkl-beam--tr { transition-delay: 80ms;  }
.bkl-turnstile__hologram-intro.beam-visible .bkl-beam--bl { transition-delay: 40ms;  }
.bkl-turnstile__hologram-intro.beam-visible .bkl-beam--br { transition-delay: 120ms; }

/* CLONE OLOGRAMMA: wrap centrato che ospita video + scanline overlay
   Sibling dello stage → coord in viewport, NO scale. */
.bkl-turnstile__hologram-clone-wrap {
	position: absolute;
	left: 50%;
	top: 42%;
	width: 22%;
	aspect-ratio: 540 / 980;
	transform: translate(-50%, -50%) scale(0.3);
	border: 2px solid rgba(245, 198, 107, 0.75);
	border-radius: 6px;
	box-shadow:
		0 0 40px rgba(245, 198, 107, 0.55),
		0 0 90px rgba(245, 198, 107, 0.35),
		inset 0 0 24px rgba(245, 198, 107, 0.15);
	opacity: 0;
	overflow: hidden;
	transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease-out;
}
.bkl-turnstile__hologram-intro.clone-visible .bkl-turnstile__hologram-clone-wrap {
	transform: translate(-50%, -50%) scale(1);
	opacity: 0.92;
}
.bkl-turnstile__hologram-clone {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-aspect-ratio: 1/1) {
	.bkl-turnstile__hologram-clone-wrap {
		width: 50%;
		top: 45%;
	}
}

/* Scanlines CRT sull'ologramma clone */
.bkl-turnstile__hologram-clone-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		0deg,
		rgba(245, 198, 107, 0.10) 0px,
		rgba(245, 198, 107, 0.10) 1px,
		transparent 1px,
		transparent 3px);
	animation: bkl-hologram-scan 1.6s linear infinite;
	mix-blend-mode: overlay;
}
@keyframes bkl-hologram-scan {
	from { background-position: 0 0;    }
	to   { background-position: 0 12px; }
}

.bkl-turnstile__transition {
	position: absolute;
	inset: 0;
	z-index: 9999;
	background: #0B0908;
	opacity: 0;
	pointer-events: none;
	transition: opacity 700ms ease-in;
}
.bkl-turnstile[data-state="transitioning"] .bkl-turnstile__transition {
	opacity: 1;
	pointer-events: auto;
}

/* ============================================================
   6. MODAL POPUP
   ============================================================ */
.bkl-ticket-modal {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
}
.bkl-ticket-modal[hidden] { display: none !important; }

.bkl-ticket-modal__overlay {
	position: absolute; inset: 0;
	background: rgba(11, 9, 8, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	animation: bkl-fadein 300ms ease-out;
}
@keyframes bkl-fadein { from { opacity: 0; } to { opacity: 1; } }

.bkl-ticket-modal__panel {
	position: relative;
	background: linear-gradient(180deg, #13100E 0%, #0B0908 100%);
	border: 1px solid rgba(245, 198, 107, 0.3);
	border-radius: 16px;
	padding: 40px 32px 28px;
	max-width: 460px; width: 90vw;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 198, 107, 0.15);
	animation: bkl-modal-in 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bkl-modal-in {
	from { opacity: 0; transform: scale(0.92) translateY(12px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.bkl-ticket-modal__close {
	position: absolute;
	top: 12px; right: 14px;
	width: 36px; height: 36px;
	background: transparent; border: none;
	color: var(--backlot-text-muted);
	font-size: 28px; line-height: 1;
	cursor: pointer;
	transition: color 200ms;
}
.bkl-ticket-modal__close:hover,
.bkl-ticket-modal__close:focus-visible { color: var(--backlot-gold-soft); outline: none; }

.bkl-ticket-modal__title {
	font-family: var(--backlot-font-serif);
	font-style: italic;
	font-size: 28px;
	color: var(--backlot-gold-soft);
	margin: 0 0 8px;
	text-align: center;
}
.bkl-ticket-modal__subtitle {
	font-size: 13px;
	color: var(--backlot-text-secondary);
	margin: 0 0 28px;
	text-align: center;
}

.bkl-ticket-modal__input {
	width: 100%; padding: 16px 20px;
	background: rgba(0, 0, 0, 0.4);
	border: 1.5px solid rgba(245, 198, 107, 0.3);
	border-radius: 10px;
	font-family: var(--backlot-font-mono);
	font-size: 22px; letter-spacing: 4px;
	color: var(--backlot-gold-soft);
	text-align: center; text-transform: uppercase;
	outline: none; box-sizing: border-box;
	transition: border-color 200ms, box-shadow 200ms;
}
.bkl-ticket-modal__input:focus {
	border-color: var(--backlot-gold);
	box-shadow: 0 0 0 3px rgba(245, 198, 107, 0.15), inset 0 0 20px rgba(245, 198, 107, 0.05);
}
.bkl-ticket-modal__input::placeholder {
	color: rgba(245, 198, 107, 0.3); letter-spacing: 4px;
}

.bkl-ticket-modal__error {
	margin: 12px 0 0;
	color: #e5a5a5; font-size: 13px;
	text-align: center; font-style: italic;
}
.bkl-ticket-modal__error[hidden] { display: none; }

.bkl-ticket-modal__submit {
	width: 100%; margin-top: 20px;
	padding: 14px 24px;
	background: linear-gradient(135deg, #F5C66B 0%, #C9A84C 50%, #9B7A2E 100%);
	color: #0B0908;
	font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
	border: none; border-radius: 999px;
	cursor: pointer;
	transition: box-shadow 200ms, transform 200ms;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bkl-ticket-modal__submit:hover,
.bkl-ticket-modal__submit:focus-visible {
	box-shadow: 0 0 28px rgba(245, 198, 107, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
	transform: translateY(-1px);
	outline: none;
}
.bkl-ticket-modal__submit--alt {
	background: rgba(11, 9, 8, 0.85);
	color: var(--backlot-gold);
	border: 1.5px solid var(--backlot-gold);
	display: inline-flex; align-items: center; justify-content: center;
	text-decoration: none;
}

/* Auth toggle codice/login (Brief C5 M2.4) */
.bkl-auth-toggle {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
	padding: 4px;
	background: rgba(11, 9, 8, 0.5);
	border: 1px solid rgba(245, 198, 107, 0.2);
	border-radius: 999px;
}
.bkl-auth-toggle__btn {
	flex: 1 1 auto;
	padding: 10px 14px;
	background: transparent !important;
	border: none !important;
	border-radius: 999px !important;
	color: #8C7E70 !important;
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	cursor: pointer;
	transition: background 180ms, color 180ms;
	text-transform: none !important;
	box-shadow: none !important;
}
.bkl-auth-toggle__btn.is-active {
	color: #F5C66B !important;
	background: linear-gradient(135deg, rgba(245,198,107,0.22) 0%, rgba(155,122,46,0.18) 100%) !important;
	box-shadow: inset 0 0 0 1px rgba(245,198,107,0.4) !important;
}
.bkl-auth-toggle__btn:hover:not(.is-active) { color: #F5C66B !important; }
.bkl-auth-toggle__btn.is-active {
	background: linear-gradient(135deg, rgba(245,198,107,0.22) 0%, rgba(155,122,46,0.18) 100%);
	color: var(--backlot-gold-soft);
	box-shadow: inset 0 0 0 1px rgba(245,198,107,0.4);
}
.bkl-auth-toggle__btn:not(.is-active):hover {
	color: var(--backlot-gold-soft);
}
.bkl-auth-form { animation: bkl-auth-fadein 260ms ease-out; }
.bkl-auth-form[hidden] { display: none; }
@keyframes bkl-auth-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.bkl-auth-form form { margin: 0; padding: 0; }
.bkl-auth-form form > input + input { margin-top: 10px; }

.bkl-ticket-modal__links {
	display: flex; justify-content: center; gap: 10px;
	margin-top: 20px;
	font-family: var(--backlot-font-mono);
	font-size: 11px; letter-spacing: 0.08em;
	color: var(--backlot-text-muted);
}
.bkl-ticket-modal__links a {
	color: var(--backlot-text-muted);
	text-decoration: none;
	border-bottom: 1px dashed rgba(140, 126, 112, 0.4);
	transition: color 200ms;
}
.bkl-ticket-modal__links a:hover,
.bkl-ticket-modal__links a:focus-visible { color: var(--backlot-gold-soft); outline: none; }

@media (max-aspect-ratio: 1/1) {
	.bkl-ticket-modal__panel { padding: 32px 22px 22px; max-width: 92vw; }
	.bkl-ticket-modal__title { font-size: 24px; }
	.bkl-ticket-modal__input { font-size: 18px; padding: 14px 16px; letter-spacing: 3px; }
}

/* ============================================================
   7. DEBUG MODE (?debug=1)
   - Outline su LCD + knob-button per visualizzare hitbox
   - .bkl-turnstile__lcd diventa draggable + resizable col mouse
   - HUD overlay mostra coords live (top/left/width/height in %)
   ============================================================ */
.bkl-turnstile.is-debug .bkl-turnstile__lcd         { outline: 2px solid #ff3b3b; cursor: move; pointer-events: auto !important; }
.bkl-turnstile.is-debug .bkl-turnstile__knob-button { outline: 2px dashed #3b9bff; cursor: move; }
.bkl-turnstile.is-debug .bkl-turnstile__layer--bar  {
	outline: 2px solid #5dd9a3;
	cursor: move;
	pointer-events: auto !important;
	/* In debug parte dalle coords calibrate (production default) così user puo' rifinire */
}

.bkl-turnstile.is-debug .bkl-turnstile__lcd::after {
	content: '';
	position: absolute;
	right: -8px; bottom: -8px;
	width: 16px; height: 16px;
	background: #ff3b3b;
	border: 2px solid #fff;
	cursor: nwse-resize;
	z-index: 999;
}
.bkl-turnstile.is-debug .bkl-turnstile__knob-button::after {
	content: '';
	position: absolute;
	right: -8px; bottom: -8px;
	width: 16px; height: 16px;
	background: #3b9bff;
	border: 2px solid #fff;
	cursor: nwse-resize;
}
/* Bar è ora un <div> wrapper → può avere ::after come LCD/knob */
.bkl-turnstile.is-debug .bkl-turnstile__layer--bar::after {
	content: '';
	position: absolute;
	right: -8px; bottom: -8px;
	width: 16px; height: 16px;
	background: #5dd9a3;
	border: 2px solid #fff;
	cursor: nwse-resize;
	z-index: 999;
}

.bkl-debug-hud {
	position: fixed;
	bottom: 12px; right: 12px;
	z-index: 99999;
	background: rgba(0,0,0,0.92);
	color: #fff;
	font-family: 'Courier New', monospace;
	font-size: 11px;
	padding: 12px 16px;
	border: 1px solid #ff3b3b;
	border-radius: 6px;
	max-width: 360px;
	white-space: pre;
	user-select: text;
	box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.bkl-debug-hud strong { color: #ff3b3b; }
.bkl-debug-hud .blue  { color: #3b9bff; }
.bkl-debug-hud .green { color: #5dd9a3; }

/* ============================================================
   8. PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.bkl-turnstile__knob-glow,
	.bkl-turnstile__arrow-hint,
	.bkl-turnstile__layer--bar,
	.bkl-turnstile__lcd { animation: none !important; transition: none !important; }
	.bkl-turnstile__lcd-video { animation: none !important; }
}
