.bts-wrapper {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	--bts-card-width: 720px;
	--bts-card-inset: 64px;
	--bts-arrow-top: 50%;
	--bts-arrow-offset-x: 18px;
	--bts-noodle-color: #fff;
	--bts-noodle-opacity: 0.18;
	--bts-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='165' height='50' viewBox='0 0 165 50'%3E%3Cpath d='M0,25 C18,2 38,2 55,25 C72,48 92,48 110,25 C128,2 148,2 165,25' stroke='white' stroke-width='10' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	--bts-spiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M45,45 C45,28 62,28 62,45 C62,68 22,68 22,45 C22,14 76,14 76,45 C76,82 8,82 8,45 C8,3 88,3 88,45' stroke='white' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.bts-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.bts-track {
	position: relative;
	display: block;
	gap: 24px;
	touch-action: pan-y;
	cursor: grab;
	transition: height var(--bts-transition, 450ms) cubic-bezier(0.4, 0, 0.2, 1);
	will-change: height;
}

.bts-track.is-dragging {
	cursor: grabbing;
	transition: none;
}

.bts-card {
	position: relative;
	box-sizing: border-box;
	display: flex;
	width: min(var(--bts-card-width), calc(100% - var(--bts-card-inset)));
	min-height: 380px;
	overflow: hidden;
	padding: 32px;
	color: var(--card-color);
	background-color: var(--card-bg);
	border-radius: 24px;
}

.bts-track .bts-card {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: var(--bts-card-z, 0);
	opacity: var(--bts-card-opacity, 0);
	pointer-events: none;
	transform: translate3d(calc(-50% + var(--bts-card-x, 0px) + var(--bts-drag-x, 0px)), var(--bts-card-y, 0px), 0) scale(var(--bts-card-scale, 0.88));
	transition:
		transform var(--bts-transition, 450ms) cubic-bezier(0.4, 0, 0.2, 1),
		opacity var(--bts-transition, 450ms) ease,
		filter var(--bts-transition, 450ms) ease;
	will-change: transform, opacity;
}

.bts-track.is-dragging .bts-card {
	transition: none;
}

.bts-card.is-active {
	--bts-card-x: 0px;
	--bts-card-y: 0px;
	--bts-card-opacity: 1;
	--bts-card-scale: 1;
	--bts-card-z: 10;
	opacity: 1;
	z-index: 10;
	pointer-events: auto;
}

.bts-card.is-prev,
.bts-card.is-next {
	--bts-card-scale: 0.9;
	--bts-card-z: 2;
	cursor: pointer;
	filter: saturate(0.92) brightness(0.96);
	pointer-events: auto;
}

.bts-card.is-prev {
	--bts-card-opacity: 0.65;
}

.bts-card.is-next {
	--bts-card-opacity: 0.78;
}

.bts-card.is-hidden {
	--bts-card-opacity: 0;
	--bts-card-scale: 0.84;
	--bts-card-z: 0;
	filter: saturate(0.8) brightness(0.92);
}

.bts-card::before,
.bts-card::after,
.bts-card__inner::before {
	position: absolute;
	display: none;
	content: "";
	pointer-events: none;
	opacity: var(--bts-noodle-opacity);
	background-color: var(--bts-noodle-color);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.bts-card--noodles::before {
	top: -8px;
	right: 20px;
	display: block;
	width: 165px;
	height: 50px;
	-webkit-mask-image: var(--bts-wave);
	mask-image: var(--bts-wave);
	transform: rotate(-12deg);
}

.bts-card--noodles::after {
	bottom: 20px;
	left: 16px;
	display: block;
	width: 90px;
	height: 90px;
	-webkit-mask-image: var(--bts-spiral);
	mask-image: var(--bts-spiral);
	transform: rotate(20deg);
}

.bts-card__inner {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	flex-direction: column;
	justify-content: space-between;
}

.bts-card--noodles .bts-card__inner::before {
	bottom: -8px;
	left: 40%;
	z-index: -1;
	display: block;
	width: 165px;
	height: 50px;
	-webkit-mask-image: var(--bts-wave);
	mask-image: var(--bts-wave);
	transform: rotate(5deg);
}

.bts-card__quote {
	flex: 1;
}

.bts-quote-icon {
	display: block;
	width: 36px;
	height: 36px;
	margin-bottom: 8px;
	color: var(--card-color);
	overflow: hidden;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 58px;
	line-height: 0.9;
	opacity: 0.4;
}

.bts-quote-icon::before {
	content: "\201C";
}

.bts-card__text {
	margin: 0;
	color: var(--card-color);
	font-size: 23px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.bts-rating {
	position: relative;
	width: 5em;
	height: 1.2em;
	margin: 12px 0 10px;
	color: rgba(255, 255, 255, 0.35);
	font-size: 16px;
	line-height: 1;
}

.bts-rating::before,
.bts-rating::after {
	position: absolute;
	top: 0;
	left: 0;
	content: "\2605\2605\2605\2605\2605";
	white-space: nowrap;
}

.bts-rating::after {
	width: var(--rating, 100%);
	overflow: hidden;
	color: #ff9800;
}

.bts-card__profile {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bts-avatar {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	object-fit: cover;
	background: #fff;
	border-radius: 50%;
}

.bts-avatar--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555;
	font-size: 16px;
	font-weight: 700;
}

.bts-profile__info {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.bts-profile__name {
	display: block;
	color: var(--card-color);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bts-profile__child {
	display: block;
	color: var(--card-color);
	font-size: 18px;
	line-height: 1.35;
	opacity: 0.8;
	overflow-wrap: anywhere;
}


.bts-arrow {
	position: absolute;
	z-index: 12;
	top: var(--bts-arrow-top, 50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	color: #1a237e;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bts-arrow--prev {
	left: var(--bts-arrow-offset-x, 18px);
}

.bts-arrow--next {
	right: var(--bts-arrow-offset-x, 18px);
}

.bts-arrow:hover,
.bts-arrow:focus-visible {
	color: #fff;
	background-color: #ff6b35;
	transform: translateY(-50%) scale(1.04);
}

.bts-arrow:focus-visible {
	outline: 2px solid var(--dot-active, #ff6b35);
	outline-offset: 4px;
}

.bts-arrow svg,
.bts-arrow i {
	display: block;
	width: 1em;
	height: 1em;
	line-height: 1;
	fill: currentColor;
}

.bts-arrow__fallback {
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1;
}
.bts-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.bts-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d1d5db;
	cursor: pointer;
	transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.bts-dot:focus-visible {
	outline: 2px solid var(--dot-active, #ff6b35);
	outline-offset: 4px;
}

.bts-dot--active {
	width: 10px;
	height: 10px;
	background: var(--dot-active, #ff6b35);
}

.bts-empty {
	padding: 24px;
	text-align: center;
	color: #4b5563;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

@media (max-width: 1040px) {
	.bts-wrapper {
		max-width: 100%;
		--bts-card-width: 80vw;
		--bts-card-inset: 48px;
	}

	.bts-card {
		min-height: 320px;
	}
}

@media (max-width: 640px) {
	.bts-track {
		gap: 16px;
	}

	.bts-wrapper {
		--bts-card-width: 100%;
		--bts-card-inset: 0px;
		--bts-arrow-offset-x: 8px;
	}

	.bts-wrapper .bts-card {
		width: 100%;
		min-height: 280px;
		padding: 20px;
		border-radius: 20px;
	}

	.bts-arrow {
		display: none;
	}

	.bts-card.is-prev,
	.bts-card.is-next {
		--bts-card-opacity: 0;
		pointer-events: none;
		cursor: default;
		filter: none;
	}

	.bts-card__text {
		font-size: 18px;
	}

	.bts-profile__name {
		font-size: 18px;
	}

	.bts-profile__child {
		font-size: 14px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.bts-track,
	.bts-track .bts-card,
	.bts-arrow,
	.bts-dot {
		transition: none;
	}
}
