.tis-scanner {
	--tis-red: #e61e1e;
	--tis-speed: 3.2s;
	--tis-logo-width: 104px;
	--tis-radius: 18px;
	--tis-height: 560px;
	--tis-tablet-height: 460px;
	--tis-mobile-height: 360px;
	--tis-fit: cover;
	--tis-glow-opacity: .7;
	--tis-glow-spread: 34px;
	--tis-glow-blur: 5px;
	--tis-beam-thickness: 2px;
	--tis-corner-size: 28px;
	--tis-corner-thickness: 2px;
	--tis-corner-inset: 16px;
	position: relative;
	width: 100%;
	height: var(--tis-height);
	overflow: hidden;
	border-radius: var(--tis-radius);
	background: #f1f1f1;
	isolation: isolate;
}

.tis-scanner .tis-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: var(--tis-fit);
}

.tis-scanner.tis-auto-height {
	height: auto;
}

.tis-scanner.tis-auto-height .tis-image {
	height: auto;
	object-fit: contain;
}

.tis-beam {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	transform: translateY(0);
	will-change: transform;
	animation: tis-scan var(--tis-speed) ease-in-out infinite alternate;
	animation-play-state: paused;
}

.tis-scanner.is-playing .tis-beam {
	animation-play-state: running;
}

.tis-beam-line {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: var(--tis-beam-thickness);
	background: var(--tis-red);
	box-shadow: 0 0 5px rgba(230, 30, 30, 0.92);
}

.tis-has-glow .tis-beam::before {
	content: "";
	position: absolute;
	top: calc(var(--tis-glow-spread) / -2);
	left: 0;
	width: 100%;
	height: var(--tis-glow-spread);
	background: linear-gradient(
		to bottom,
		rgba(230, 30, 30, 0),
		rgba(230, 30, 30, var(--tis-glow-opacity)),
		rgba(230, 30, 30, 0)
	);
	filter: blur(var(--tis-glow-blur));
	pointer-events: none;
}

.tis-corners {
	position: absolute;
	z-index: 3;
	inset: 0;
	pointer-events: none;
}

.tis-corner {
	position: absolute;
	width: var(--tis-corner-size);
	height: var(--tis-corner-size);
	border-color: var(--tis-red);
	border-style: solid;
	filter: drop-shadow(0 0 4px rgba(230, 30, 30, .55));
}

.tis-corner-tl { top: var(--tis-corner-inset); left: var(--tis-corner-inset); border-width: var(--tis-corner-thickness) 0 0 var(--tis-corner-thickness); }
.tis-corner-tr { top: var(--tis-corner-inset); right: var(--tis-corner-inset); border-width: var(--tis-corner-thickness) var(--tis-corner-thickness) 0 0; }
.tis-corner-bl { bottom: var(--tis-corner-inset); left: var(--tis-corner-inset); border-width: 0 0 var(--tis-corner-thickness) var(--tis-corner-thickness); }
.tis-corner-br { right: var(--tis-corner-inset); bottom: var(--tis-corner-inset); border-width: 0 var(--tis-corner-thickness) var(--tis-corner-thickness) 0; }

.tis-hud-top,
.tis-hud-bottom {
	position: absolute;
	z-index: 4;
	color: var(--tis-red);
	font-family: "Courier New", monospace;
	text-shadow: 0 0 7px rgba(230, 30, 30, .72);
	pointer-events: none;
}

.tis-hud-top {
	top: calc(var(--tis-corner-inset) + 2px);
	left: 50%;
	max-width: calc(100% - 120px);
	padding: 5px 12px;
	border: 1px solid rgba(230, 30, 30, .72);
	background: rgba(6, 12, 18, .72);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	transform: translateX(-50%);
}

.tis-hud-bottom {
	right: calc(var(--tis-corner-inset) + 16px);
	bottom: calc(var(--tis-corner-inset) + 10px);
	left: calc(var(--tis-corner-inset) + 16px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.tis-hud-bottom span {
	font-size: 11px;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tis-hud-bottom strong {
	margin-top: 2px;
	padding-left: 8px;
	border-left: 3px solid var(--tis-red);
	color: #fff;
	font-family: inherit;
	font-size: clamp(14px, 2.1vw, 22px);
	line-height: 1.2;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}

.tis-logo-wrap {
	position: absolute;
	top: 0;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--tis-logo-width) + 22px);
	height: 30px;
	padding: 7px 11px;
	border: 1px solid rgba(230, 30, 30, 0.2);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transform: translate(-50%, -50%);
	box-sizing: border-box;
}

.tis-logo-wrap img {
	display: block;
	width: var(--tis-logo-width);
	max-width: 100%;
	height: auto;
	margin: 0;
}

.tis-pause-hover:hover .tis-beam {
	animation-play-state: paused;
}

.tis-empty {
	padding: 24px;
	border: 1px dashed #c7c7c7;
	border-radius: 12px;
	background: #f7f7f7;
	color: #555;
	text-align: center;
	font: 400 14px/1.5 system-ui, sans-serif;
}

@keyframes tis-scan {
	from {
		transform: translateY(18px);
	}
	to {
		transform: translateY(calc(var(--tis-current-height, var(--tis-height)) - 18px));
	}
}

@media (max-width: 1024px) {
	.tis-scanner {
		height: var(--tis-tablet-height);
	}

	.tis-scanner.tis-auto-height {
		height: auto;
	}
}

@media (max-width: 767px) {
	.tis-scanner {
		height: var(--tis-mobile-height);
	}

	.tis-scanner.tis-auto-height {
		height: auto;
	}

	.tis-logo-wrap {
		height: 28px;
	}

	.tis-hud-top {
		max-width: calc(100% - 80px);
		font-size: 9px;
		letter-spacing: .05em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tis-beam {
		animation: none;
		transform: translateY(calc(var(--tis-current-height, var(--tis-height)) / 2));
	}
}
