/* Buildtown-style Magic Cursor (cb-cursor) */
.cb-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	contain: layout style size;
	pointer-events: none;
	will-change: transform;
	mix-blend-mode: normal;
	color: var(--color-accent, #f5a623);
	transition: opacity 0.3s, color 0.4s;
}

.cb-cursor::before {
	content: "";
	position: absolute;
	top: -24px;
	left: -24px;
	display: block;
	width: 48px;
	height: 48px;
	transform: scale(0);
	border-radius: 50%;
	background: var(--color-accent, #f5a623);
	transition: opacity 0.1s, transform 0.3s ease-in-out, background 0.3s ease;
}

.cb-cursor-text {
	position: absolute;
	top: -18px;
	left: -18px;
	width: 80px;
	height: 36px;
	margin-left: -22px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0) rotate(10deg);
	opacity: 0;
	color: white;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--font-heading, 'Mulish', sans-serif);
	line-height: 1;
	text-align: center;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: opacity 0.4s, transform 0.3s;
	pointer-events: none;
}

@supports (mix-blend-mode: exclusion) {
	.cb-cursor.-exclusion,
	.cb-cursor.-opaque {
		mix-blend-mode: exclusion;
	}

	.cb-cursor.-exclusion::before,
	.cb-cursor.-opaque::before {
		background: #ffffff;
	}
}

.cb-cursor.-normal {
	mix-blend-mode: normal;
}

.cb-cursor.-normal::before {
	background: currentColor;
}

.cb-cursor.-text {
	mix-blend-mode: normal;
}

.cb-cursor.-visible {
	opacity: 1;
	visibility: visible;
}

.cb-cursor.-visible::before {
	transform: scale(0.2);
}

.cb-cursor.-visible.-active::before {
	transform: scale(0.23);
	transition-duration: 0.2s;
}

.cb-cursor.-pointer::before {
	transform: scale(0);
}

.cb-cursor.-text::before {
	background: #000;
	opacity: 0.8;
	backdrop-filter: blur(10px);
	transform: scale(1.7);
}

.cb-cursor.-text .cb-cursor-text {
	opacity: 1;
	transform: scale(1);
}

.cb-cursor.-text.-active::before {
	transform: scale(1.6);
	transition-duration: 0.2s;
}

.cb-cursor.-opaque::before {
	transform: scale(1.32);
}

.cb-cursor.-opaque.-active::before {
	transform: scale(1.2);
}

.cb-cursor.-hidden {
	opacity: 0;
	visibility: hidden;
}

.cb-cursor.-hidden::before {
	transform: scale(0);
}
