.bz-home {
	--bz-font-body: "Rubik", system-ui, sans-serif;
	--bz-font-display: "Unbounded", sans-serif;
	--bz-gradient: linear-gradient(135deg, #ffe08a 0%, #f7c23b 45%, #ef8f3c 100%);
	--home-panel: #0e0e17;
	--home-panel-2: #14141f;
	--home-line: rgba(255, 255, 255, 0.08);
	--home-text: #f4f2ff;
	--home-muted: #9a97b8;
	--home-gold: #f7c23b;
	--home-gold-light: #ffe08a;
	--home-orange: #ef8f3c;
	overflow: hidden;
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(247, 194, 59, 0.12), transparent 60%),
		radial-gradient(900px 500px at -10% 10%, rgba(239, 143, 60, 0.08), transparent 55%),
		#07070c;
	color: var(--home-text);
	font-family: var(--bz-font-body);
	-webkit-font-smoothing: antialiased;
}

.bz-home-wrap {
	width: min(calc(100% - 80px), 1240px);
	margin-inline: auto;
}

/* Horizontal game-box showcase, converted from the original fixed 1860px scene. */
.bz-home-showcase {
	padding: 10px 0 20px;
}

.bz-home-showcase__mobile {
	position: relative;
	display: none;
	overflow: hidden;
	width: min(calc(100% - 36px), 720px);
	margin-inline: auto;
	border: 1px solid var(--home-line);
	border-radius: 20px;
	background: #0d0d10;
}

.bz-home-showcase__mobile-art {
	display: block;
	width: 100%;
}

.bz-home-showcase__mobile-logo {
	position: absolute;
	top: 44%;
	left: 50%;
	width: 66%;
	transform: translate(-50%, -50%);
}

.bz-home-showcase__mobile span {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 7px 14px;
	border-radius: 99px;
	background: var(--home-gold);
	color: #160b01;
	font-size: 0.75rem;
	font-weight: 700;
}

.bz-showcase-clip {
	position: relative;
	overflow: hidden;
}

.bz-showcase-fit {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1860px;
	transform-origin: top center;
}

.bz-showcase-stage {
	position: relative;
	overflow: hidden;
	width: 1860px;
	height: 780px;
	border: 1px solid rgba(247, 224, 180, 0.1);
	border-radius: 30px;
	background:
		radial-gradient(130% 110% at 100% 0%, rgba(247, 194, 59, 0.08), transparent 55%),
		linear-gradient(180deg, #191921, #131319);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.bz-showcase-stage__background {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	opacity: 0.07;
	filter: blur(16px);
}

.bz-showcase-stage__veil {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 13, 0.1);
}

.bz-showcase-wheel {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 104px;
	perspective: 3000px;
	cursor: grab;
	/* Колесо растянуто на всю витрину, поэтому touch-action: none забирал себе
	   и вертикальные свайпы — страница переставала прокручиваться пальцем.
	   pan-y отдаёт вертикаль браузеру, горизонталь остаётся нам. */
	touch-action: pan-y;
	user-select: none;
}

.bz-showcase-wheel.is-dragging {
	cursor: grabbing;
}

.bz-showcase-wheel:focus-visible {
	outline: 2px solid var(--home-gold);
	outline-offset: -8px;
}

.bz-showcase-wheel__tilt {
	transform: rotateX(-7deg);
	transform-style: preserve-3d;
}

.bz-showcase-wheel__ring {
	position: relative;
	width: 432px;
	height: 432px;
	transform: translateZ(-964px);
	transform-style: preserve-3d;
	will-change: transform;
}

.bz-showcase-card {
	position: absolute;
	inset: 0;
	transform: rotateY(var(--card-angle)) translateZ(964px);
	transform-style: preserve-3d;
}

.bz-showcase-card__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 22px;
	background-position: center;
	background-size: cover;
	backface-visibility: hidden;
}

.bz-showcase-card__face--outside {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.bz-showcase-card__face--inside {
	transform: rotateY(180deg);
	filter: brightness(0.35);
}

.bz-showcase-caption {
	position: absolute;
	z-index: 3;
	bottom: 54px;
	left: 50%;
	width: 100%;
	padding-inline: 60px;
	transform: translateX(-50%);
	text-align: center;
	pointer-events: none;
}

.bz-showcase-caption h1 {
	margin: 0;
	color: var(--home-text);
	font-family: var(--bz-font-display);
	font-size: 56px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -1.4px;
}

/* Заголовок набирается одним цветом: акцентный кусок больше не
   красится градиентом, чтобы заголовки не были разноцветными. */
.bz-showcase-caption h1 span {
	color: inherit;
}

/* Projects and news. */
.bz-home-block {
	padding: 70px 0 10px;
}

.bz-home-block--news {
	padding-bottom: 70px;
}

.bz-home-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 34px;
	gap: 24px;
}

.bz-home-heading h2 {
	margin: 0;
	font-family: var(--bz-font-display);
	font-size: 50px;
	font-weight: 800;
	letter-spacing: -1.5px;
	text-transform: uppercase;
}

.bz-home-heading h2 em {
	font-style: normal;
}

.bz-project-filters {
	display: flex;
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--home-line);
	border-radius: 99px;
	background: var(--home-panel);
}

.bz-project-filters button {
	padding: 11px 22px;
	border: 0;
	border-radius: 99px;
	background: transparent;
	color: var(--home-muted);
	font: 700 0.875rem var(--bz-font-body);
	cursor: pointer;
	transition: background 0.3s cubic-bezier(0.2, 0.85, 0.3, 1), color 0.25s, box-shadow 0.3s, transform 0.2s;
}

.bz-project-filters button:hover:not(.is-active) {
	color: var(--home-text);
}

.bz-project-filters button:active {
	transform: scale(0.97);
}

.bz-project-filters button.is-active {
	background: var(--home-gold);
	box-shadow: 0 4px 14px rgba(247, 194, 59, 0.32);
	color: #160b01;
}

.bz-project-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
}

.bz-home-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 32px;
	border: 1px dashed var(--home-line);
	border-radius: 18px;
	color: var(--home-muted);
	text-align: center;
}

.bz-project-card {
	grid-column: span 2;
	display: flex;
	overflow: hidden;
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--home-line);
	border-radius: 20px;
	background: var(--home-panel);
	transition: opacity 0.32s cubic-bezier(0.2, 0.85, 0.3, 1), transform 0.32s cubic-bezier(0.2, 0.85, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.bz-project-card--wide {
	grid-column: span 3;
}

.bz-project-card.is-leaving,
.bz-project-card.is-entering {
	transform: scale(0.965) translateY(8px);
	opacity: 0;
}

.bz-project-card.is-leaving {
	pointer-events: none;
}

.bz-project-card[hidden] {
	display: none;
}

.bz-project-card__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	height: 300px;
	background: #0a0a12;
}

.bz-project-card--wide .bz-project-card__thumb {
	height: 400px;
}

.bz-project-card__thumb::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(14, 14, 23, 0.65));
	content: "";
}

.bz-project-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.bz-project-card__badge {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	border-radius: 99px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.bz-project-card__badge--pre {
	background: var(--home-gold);
	color: #1a1206;
}

.bz-project-card__badge--done {
	border: 1px solid var(--home-line);
	background: rgba(20, 20, 31, 0.85);
	color: var(--home-muted);
	backdrop-filter: blur(4px);
}

.bz-project-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px 18px;
}

.bz-project-card__body h3 {
	margin: 0;
	font-family: var(--bz-font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.4px;
}

.bz-project-card--wide .bz-project-card__body h3 {
	font-size: 22px;
}

.bz-project-card__body h3 a {
	color: var(--home-text);
}

.bz-project-card__body p {
	display: -webkit-box;
	overflow: hidden;
	min-height: calc(1.55em * 3);
	margin: 9px 0 16px;
	color: #bcbbc1;
	font-size: 0.96875rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.bz-project-card--wide .bz-project-card__body p {
	max-width: 640px;
}

.bz-project-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.bz-project-card__button,
.bz-project-card__complete,
.bz-project-card__external {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.8125rem;
	font-weight: 700;
}

.bz-project-card__button {
	position: relative;
	isolation: isolate;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.35);
	color: #fff;
	backdrop-filter: blur(12px);
	transition: transform 0.15s ease, border-color 0.2s;
}

.bz-project-card__button:hover {
	transform: translateY(-1px);
	border-color: var(--home-gold);
}

.bz-project-card__button:active {
	transform: translateY(0) scale(0.99);
}

@property --bz-button-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

.bz-project-card__button::before {
	position: absolute;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(
		from var(--bz-button-angle),
		rgba(255, 255, 255, 0.14) 0deg,
		transparent 55deg,
		transparent 230deg,
		#ffe08a 300deg,
		#ef8f3c 335deg,
		rgba(255, 255, 255, 0.14) 360deg
	);
	content: "";
	pointer-events: none;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: bz-button-ring 2.6s linear infinite;
}

.bz-project-card__button::after {
	position: absolute;
	z-index: -1;
	top: -8px;
	right: -6px;
	width: 60%;
	height: 70%;
	border-radius: inherit;
	background: radial-gradient(closest-side, rgba(239, 143, 60, 0.55), transparent 70%);
	content: "";
	filter: blur(10px);
	pointer-events: none;
}

@keyframes bz-button-ring {
	to {
		--bz-button-angle: 360deg;
	}
}

.bz-project-card__button:focus-visible,
.bz-project-card__body h3 a:focus-visible,
.bz-project-card__thumb:focus-visible,
.bz-news-link:focus-visible,
.bz-news-card a:focus-visible,
.bz-project-filters button:focus-visible {
	outline: 2px solid var(--home-gold);
	outline-offset: 3px;
}

.bz-project-card__complete {
	border: 1px solid var(--home-line);
	background: rgba(255, 255, 255, 0.04);
	color: var(--home-muted);
}

.bz-project-card__external {
	background: #005bff;
	color: #fff;
	transition: filter 0.2s, transform 0.2s;
}

.bz-project-card__external:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.bz-news-link {
	display: inline-flex;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 14px;
	color: var(--home-text);
	font-size: 0.875rem;
	font-weight: 700;
}

.bz-news-link:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.04);
}

.bz-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.bz-news-card {
	display: flex;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--home-line);
	border-radius: 18px;
	background: var(--home-panel);
	transition: border-color 0.2s;
}

.bz-news-card:hover {
	border-color: rgba(255, 255, 255, 0.2);
}

.bz-news-card__thumb {
	overflow: hidden;
	width: 96px;
	height: 96px;
	flex: 0 0 96px;
	border-radius: 12px;
}

.bz-news-card__thumb img,
.bz-news-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bz-news-card__placeholder {
	background: radial-gradient(circle at 40% 30%, rgba(247, 194, 59, 0.22), transparent 65%), var(--home-panel-2);
}

.bz-news-card__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.bz-news-card h3 {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.bz-news-card h3 a {
	color: var(--home-text);
}

.bz-news-card time {
	margin-top: auto;
	color: var(--home-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
	.bz-project-card:hover,
	.bz-project-card:focus-within {
		transform: translateY(-6px);
		border-color: rgba(255, 255, 255, 0.22);
		box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
	}

	.bz-project-card:hover .bz-project-card__thumb img,
	.bz-project-card:focus-within .bz-project-card__thumb img {
		transform: scale(1.04);
	}

	.bz-project-card:hover .bz-project-card__body h3 a,
	.bz-project-card:focus-within .bz-project-card__body h3 a {
		color: var(--home-gold);
	}
}

@media (max-width: 1000px) {
	.bz-home-wrap {
		width: min(calc(100% - 48px), 1240px);
	}

	.bz-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bz-project-card,
	.bz-project-card--wide {
		grid-column: span 1;
	}

	.bz-project-card--wide .bz-project-card__thumb {
		height: 300px;
	}

	.bz-news-grid {
		display: flex;
		overflow-x: auto;
		gap: 16px;
		margin-inline: -24px;
		padding: 0 24px 4px;
		scroll-padding-left: 24px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.bz-news-grid::-webkit-scrollbar {
		display: none;
	}

	.bz-news-card {
		flex: 0 0 320px;
		scroll-snap-align: start;
	}
}

@media (max-width: 760px) {
	.bz-home-showcase {
		padding-top: 8px;
	}

	.bz-showcase-clip {
		display: none;
	}

	.bz-home-showcase__mobile {
		display: block;
	}

	.bz-home-block {
		padding-top: 56px;
	}

	.bz-home-heading {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: 24px;
		gap: 16px;
	}

	.bz-home-heading h2 {
		font-size: clamp(30px, 9vw, 44px);
		letter-spacing: -1px;
	}

	.bz-project-filters {
		overflow-x: auto;
		width: 100%;
		justify-content: flex-start;
	}

	.bz-project-filters button {
		padding: 10px 15px;
		font-size: 0.8125rem;
		white-space: nowrap;
	}
}

@media (max-width: 640px) {
	.bz-home-wrap {
		width: min(calc(100% - 36px), 1240px);
	}

	.bz-project-grid {
		grid-template-columns: 1fr;
	}

	.bz-project-card__thumb,
	.bz-project-card--wide .bz-project-card__thumb {
		height: 300px;
	}

	.bz-news-grid {
		margin-inline: -18px;
		padding-inline: 18px;
		scroll-padding-left: 18px;
	}

	.bz-news-card {
		flex-basis: 84%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bz-showcase-wheel__ring,
	.bz-project-filters button,
	.bz-project-card,
	.bz-project-card__thumb img,
	.bz-project-card__button {
		transition: none;
	}

	.bz-project-card__button::before {
		animation: none;
	}
}
