/* =========================================================================
   MBZ — Game promo (homepage) + interactive mixer page v2
   ========================================================================= */

/* —— Homepage promo —— */
.game-promo-section {
	background:
		radial-gradient(ellipse 80% 60% at 10% 20%, rgba(221, 12, 13, 0.08), transparent 55%),
		linear-gradient(135deg, #0B0C0D 0%, #1C1E21 55%, #2B2E32 100%);
	color: var(--mbz-white);
}

.game-promo {
	display: grid;
	grid-template-columns: minmax(160px, 260px) 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

.game-promo__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	padding: 0;
}

.game-promo__picture {
	display: block;
	width: 100%;
	max-width: 260px;
}

.game-promo__image {
	display: block;
	width: 100%;
	max-width: 260px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.game-promo__fallback {
	display: inline-flex;
	width: 72px;
	height: 72px;
	align-items: center;
	justify-content: center;
	color: var(--mbz-red);
	background: rgba(255, 255, 255, 0.06);
	border-radius: 16px;
}

.game-promo__body h2 {
	color: var(--mbz-white);
	margin: 0 0 12px;
	font-family: var(--mbz-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.game-promo__text {
	margin: 0 0 24px;
	max-width: 520px;
	color: var(--mbz-text-muted-dark);
	font-size: 1.05rem;
}

.game-promo-section .btn--primary {
	box-shadow: var(--mbz-shadow-red);
}

@media (max-width: 700px) {
	.game-promo {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.game-promo__text {
		margin-inline: auto;
	}

	.game-promo__picture,
	.game-promo__image {
		max-width: 220px;
		margin-inline: auto;
	}
}

/* —— Game page —— */
.page-header--game {
	margin-bottom: 28px;
}

.mbz-game {
	position: relative;
	background:
		linear-gradient(180deg, #FFFFFF 0%, #F5F6F7 100%);
	border: 1px solid var(--mbz-border);
	border-radius: var(--mbz-radius-lg);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: var(--mbz-shadow-small);
	overflow: hidden;
}

/* Ensure [hidden] wins over display:flex/grid utilities */
.mbz-game [hidden] {
	display: none !important;
}

.mbz-game__sound {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mbz-border);
	border-radius: 10px;
	background: #fff;
	color: var(--mbz-graphite);
	cursor: pointer;
	touch-action: manipulation;
}

.mbz-game__sound.is-on .mbz-game__sound-mute {
	display: none;
}

.mbz-game__sound:not(.is-on) {
	opacity: 0.85;
}

/* —— Start screen —— */
.mbz-game__start {
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(221, 12, 13, 0.12), transparent 55%),
		linear-gradient(165deg, #2B2E32 0%, #1C1E21 40%, #3D3428 100%);
	border-radius: var(--mbz-radius-lg);
	color: #F7F8F9;
	transition: opacity 0.42s ease;
}

.mbz-game__start.is-fading {
	opacity: 0;
}

.mbz-game__start-inner {
	max-width: 440px;
	text-align: center;
}

.mbz-game__start-brand {
	margin: 0 0 8px;
	font-family: var(--mbz-font-heading);
	font-weight: 800;
	letter-spacing: 0.2em;
	color: var(--mbz-red);
	font-size: 1.1rem;
}

.mbz-game__start-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
}

.mbz-game__start-text {
	margin: 0 0 24px;
	color: rgba(247, 248, 249, 0.82);
	line-height: 1.5;
}

.mbz-game__start-cta {
	min-height: 48px;
	min-width: 200px;
}

.mbz-game__start-time {
	margin: 14px 0 0;
	font-size: 0.9rem;
	color: rgba(247, 248, 249, 0.55);
}

/* —— Mission select —— */
.mbz-game__mission {
	padding: 8px 0 4px;
}

.mbz-game__mission-inner {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.mbz-game__mission-title {
	margin: 0 0 8px;
	font-size: 1.4rem;
}

.mbz-game__mission-text {
	margin: 0 0 20px;
	color: var(--mbz-text-muted);
}

.mbz-game__missions {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 10px;
	text-align: left;
}

.mbz-game__mission-btn {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "name stars" "desc stars";
	gap: 2px 12px;
	align-items: center;
	padding: 14px 16px;
	min-height: 64px;
	border: 2px solid var(--mbz-border);
	border-radius: var(--mbz-radius);
	background: #fff;
	cursor: pointer;
	text-align: left;
	touch-action: manipulation;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mbz-game__mission-btn.is-selected {
	border-color: var(--mbz-red);
	box-shadow: 0 0 0 3px rgba(221, 12, 13, 0.12);
}

.mbz-game__mission-name {
	grid-area: name;
	font-family: var(--mbz-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mbz-game__mission-desc {
	grid-area: desc;
	font-size: 0.9rem;
	color: var(--mbz-text-muted);
}

.mbz-game__mission-stars {
	grid-area: stars;
	color: #C4A574;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
}

/* —— Play topbar / progress / tips —— */
.mbz-game__topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-right: 48px;
}

.mbz-game__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mbz-game__steps li {
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-family: var(--mbz-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #EEF0F2;
	color: var(--mbz-text-muted);
}

.mbz-game__steps li.is-active {
	background: var(--mbz-red);
	color: #fff;
}

.mbz-game__steps li.is-done {
	background: #DCE0E4;
	color: var(--mbz-graphite);
}

.mbz-game__steps-compact {
	display: none;
	margin: 0;
	font-family: var(--mbz-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	color: var(--mbz-graphite);
}

.mbz-game__tip-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mbz-border);
	border-radius: 10px;
	background: #fff;
	font-family: var(--mbz-font-heading);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
	touch-action: manipulation;
}

.mbz-game__tip-btn-icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--mbz-red);
	color: #fff;
	font-style: italic;
	font-family: Georgia, serif;
}

.mbz-game__tip-card {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
	padding: 14px 40px 14px 14px;
	background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 60%);
	border: 1px solid #E5D5C0;
	border-radius: var(--mbz-radius);
	animation: mbz-tip-in 0.3s ease;
}

.mbz-game__tip-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: var(--mbz-text-muted);
	touch-action: manipulation;
}

.mbz-game__tip-text {
	margin: 0;
	color: var(--mbz-graphite);
	line-height: 1.45;
}

.mbz-game__tip-engineer {
	flex-shrink: 0;
}

@keyframes mbz-tip-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* —— Stage layout —— */
.mbz-game__stage {
	display: grid;
	grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr);
	gap: clamp(16px, 3vw, 32px);
	align-items: start;
}

.mbz-game__workspace {
	position: relative;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 30%),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 11px,
			rgba(0, 0, 0, 0.04) 11px,
			rgba(0, 0, 0, 0.04) 12px
		),
		linear-gradient(165deg, #3A342C 0%, #2B2E32 35%, #1C1E21 70%, #252018 100%);
	border-radius: var(--mbz-radius-lg);
	border: 1px solid #4A4540;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		inset 0 -30px 50px rgba(0, 0, 0, 0.25),
		0 16px 30px rgba(0, 0, 0, 0.18);
	padding: 24px 16px 18px;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	overflow: hidden;
	touch-action: none;
}

.mbz-game__workspace.is-drop-target {
	outline: 2px dashed rgba(221, 12, 13, 0.7);
	outline-offset: -6px;
}

.mbz-game__workspace::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 28%;
	background:
		linear-gradient(180deg, transparent, rgba(80, 60, 40, 0.35)),
		repeating-linear-gradient(
			90deg,
			#5A4634,
			#5A4634 18px,
			#4A3A2C 18px,
			#4A3A2C 20px
		);
	opacity: 0.55;
	pointer-events: none;
}

.mbz-game__particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.mbz-game__plant {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 28px;
	width: 100%;
	min-height: 230px;
}

.mbz-game__mixer-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.mbz-game__mixer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.mbz-game__drum {
	position: relative;
	width: 158px;
	height: 178px;
	border-radius: 48% / 16%;
	background:
		linear-gradient(90deg, #1A1C1F 0%, #3A3E44 18%, #2B2E32 50%, #3A3E44 82%, #1A1C1F 100%);
	border: 3px solid #5A5F66;
	box-shadow:
		inset 0 -24px 40px rgba(0, 0, 0, 0.5),
		inset 8px 0 16px rgba(255, 255, 255, 0.06),
		0 18px 32px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	transition: transform 0.35s ease;
}

.mbz-game__drum-rim {
	position: absolute;
	top: 6%;
	left: 18%;
	right: 18%;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(180deg, #6B7178, #2B2E32);
	z-index: 4;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.mbz-game__drum::before {
	content: "";
	position: absolute;
	inset: 38% 0 auto;
	height: 20px;
	background: linear-gradient(90deg, #A00102, #DD0C0D, #A00102);
	z-index: 2;
}

.mbz-game__drum-brand {
	position: absolute;
	inset: 38% 0 auto;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	font-family: var(--mbz-font-heading);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #fff;
}

.mbz-game__drum-inner {
	position: absolute;
	inset: 14% 16% 12%;
	border-radius: 40% / 16%;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
		rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column-reverse;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.mbz-game__fill {
	display: block;
	width: 100%;
	height: 0;
	opacity: 0;
	transition: height 0.28s ease, opacity 0.2s ease;
}

.mbz-game__fill--cement { background: linear-gradient(180deg, #9AA0A6, #6B7178); }
.mbz-game__fill--sand { background: linear-gradient(180deg, #D4B896, #C4A574); }
.mbz-game__fill--gravel {
	background:
		repeating-linear-gradient(45deg, #3A3E44 0 4px, #4A4E54 4px 8px),
		#3A3E44;
}
.mbz-game__fill--water { background: rgba(91, 155, 213, 0.78); }
.mbz-game__fill--plasticizer { background: rgba(221, 12, 13, 0.55); }
.mbz-game__fill--mixed {
	background: linear-gradient(180deg, #8A9096 0%, #5A5F66 100%);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.mbz-game__overflow {
	position: absolute;
	top: 22%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--mbz-red);
	color: #fff;
	font-size: 0.7rem;
	font-family: var(--mbz-font-heading);
	text-transform: uppercase;
	white-space: nowrap;
}

.mbz-game__drum.is-overflow {
	box-shadow: inset 0 -24px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(221, 12, 13, 0.7);
}

.mbz-game__drum.is-mixing {
	animation: mbz-drum-spin 0.5s linear infinite;
}

.mbz-game__drum.is-ready {
	box-shadow:
		inset 0 -24px 40px rgba(0, 0, 0, 0.5),
		0 0 0 3px rgba(221, 12, 13, 0.45),
		0 18px 32px rgba(0, 0, 0, 0.4);
}

.mbz-game__drum.is-pouring {
	transform: rotate(32deg) translate(10px, 12px);
}

.mbz-game__fill-meter {
	width: 120px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	position: relative;
	margin-top: 16px;
}

.mbz-game__fill-meter-bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #AEB4BA, #DD0C0D);
	transition: width 0.25s ease;
	overflow: hidden;
}

.mbz-game__fill-meter-bar.is-warn {
	background: #DD0C0D;
}

.mbz-game__fill-meter-label {
	position: absolute;
	inset: auto auto 12px 50%;
	transform: translateX(-50%);
	font-size: 0.7rem;
	color: rgba(247, 248, 249, 0.7);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mbz-game__mix-progress {
	width: 140px;
	text-align: center;
}

.mbz-game__mix-progress-bar {
	display: block;
	height: 6px;
	width: 0;
	border-radius: 999px;
	background: var(--mbz-red);
	transition-property: width;
	transition-timing-function: linear;
}

.mbz-game__mix-progress-label {
	display: block;
	margin-top: 6px;
	font-size: 0.75rem;
	color: rgba(247, 248, 249, 0.75);
}

@keyframes mbz-drum-spin {
	0% { transform: rotate(0deg); }
	25% { transform: rotate(-10deg); }
	50% { transform: rotate(0deg); }
	75% { transform: rotate(10deg); }
	100% { transform: rotate(0deg); }
}

/* Formwork */
.mbz-game__formwork {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	position: relative;
}

.mbz-game__formwork-frame {
	width: 96px;
	height: 108px;
	border: 3px solid #8B7355;
	border-top: none;
	border-radius: 0 0 4px 4px;
	background:
		linear-gradient(90deg, rgba(139, 115, 85, 0.25), transparent 20%, transparent 80%, rgba(139, 115, 85, 0.25)),
		rgba(255, 255, 255, 0.04);
	position: relative;
	overflow: hidden;
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.25),
		4px 0 0 #6B5840,
		-4px 0 0 #6B5840;
}

.mbz-game__rebar {
	position: absolute;
	inset: 8px;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	opacity: 0.85;
	z-index: 1;
}

.mbz-game__cube {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 8px;
	height: 0;
	border-radius: 3px;
	background: #8A9096;
	transition: height 0.9s ease;
	z-index: 2;
	box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15);
}

.mbz-game__cube.is-filled {
	height: calc(100% - 16px);
}

.mbz-game__cube.is-beton,
.mbz-game__cube.is-good {
	background: linear-gradient(180deg, #A8AEB4 0%, #6B7178 100%);
}

.mbz-game__cube.is-ok {
	background: linear-gradient(180deg, #9AA0A6 0%, #5A5F66 100%);
}

.mbz-game__cube.is-rastvor {
	background: linear-gradient(180deg, #C4A574 0%, #8E7654 100%);
}

.mbz-game__cube.is-weak {
	background: linear-gradient(180deg, #8A7070 0%, #5A4040 100%);
}

.mbz-game__cube.is-fail {
	background: linear-gradient(180deg, #5A3030 0%, #3A1E1E 100%);
}

.mbz-game__pour-stream {
	position: absolute;
	top: -14px;
	left: 50%;
	width: 12px;
	height: 36px;
	margin-left: -6px;
	background: linear-gradient(#AEB4BA, #6B7178);
	border-radius: 0 0 6px 6px;
	z-index: 3;
	animation: mbz-pour 0.55s ease infinite;
}

.mbz-game__formwork.is-pouring .mbz-game__formwork-frame::after {
	content: none;
}

@keyframes mbz-pour {
	0% { opacity: 0.25; transform: translateY(-4px) scaleY(0.8); }
	50% { opacity: 1; transform: translateY(6px) scaleY(1.1); }
	100% { opacity: 0.25; transform: translateY(18px) scaleY(0.9); }
}

.mbz-game__formwork-label {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(247, 248, 249, 0.65);
	font-family: var(--mbz-font-heading);
}

.mbz-game__cure {
	display: flex;
	align-items: baseline;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(221, 12, 13, 0.9);
	color: #fff;
	font-family: var(--mbz-font-heading);
	font-weight: 800;
	font-size: 1.1rem;
}

.mbz-game__cure-unit {
	font-size: 0.7rem;
	font-weight: 600;
	opacity: 0.85;
}

.mbz-game__status {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: center;
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #F7F8F9;
	font-size: 0.95rem;
	min-height: 44px;
}

/* —— Controls / components —— */
.mbz-game__hint {
	margin: 0 0 14px;
	color: var(--mbz-text-muted);
	font-size: 0.95rem;
}

.mbz-game__components {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.mbz-game__component {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--mbz-background);
	border: 1px solid var(--mbz-border);
	border-radius: var(--mbz-radius);
	user-select: none;
	-webkit-user-select: none;
}

.mbz-game__component.is-dragging {
	opacity: 0.55;
}

.mbz-game__comp-visual {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 4px;
	margin: -4px;
	border: none;
	background: transparent;
	cursor: grab;
	text-align: left;
	touch-action: manipulation;
	min-height: 44px;
	color: inherit;
	font: inherit;
}

.mbz-game__comp-visual:active {
	cursor: grabbing;
}

.mbz-game__comp-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 8px;
	position: relative;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.mbz-game__comp-icon--bag {
	background: linear-gradient(160deg, #6B7178, #3A3E44);
}
.mbz-game__comp-icon--bag::after {
	content: "МБЗ";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.55rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
	font-family: var(--mbz-font-heading);
}

.mbz-game__component--sand .mbz-game__comp-icon--bin {
	background: linear-gradient(160deg, #D4B896, #C4A574);
}
.mbz-game__component--gravel .mbz-game__comp-icon--bin {
	background:
		repeating-linear-gradient(45deg, #3A3E44 0 3px, #5A5F66 3px 6px);
}
.mbz-game__comp-icon--bin::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	top: 8px;
	bottom: 6px;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-top: none;
	border-radius: 0 0 4px 4px;
}

.mbz-game__comp-icon--bucket {
	background: linear-gradient(160deg, #5B9BD5, #3D7AB0);
	border-radius: 6px 6px 10px 10px;
}
.mbz-game__comp-icon--bucket::before {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	top: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 2px;
}

.mbz-game__comp-icon--can {
	background: linear-gradient(160deg, #DD0C0D, #A00102);
	border-radius: 6px;
}
.mbz-game__comp-icon--can::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 50%;
	width: 10px;
	height: 8px;
	margin-left: -5px;
	background: #2B2E32;
	border-radius: 2px 2px 0 0;
}

.mbz-game__comp-label {
	font-weight: 700;
	font-family: var(--mbz-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.88rem;
}

.mbz-game__stepper {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mbz-game__btn-step {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: 1px solid var(--mbz-border);
	background: var(--mbz-white);
	color: var(--mbz-graphite);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mbz-game__btn-step:hover,
.mbz-game__btn-step:focus-visible {
	background: var(--mbz-red);
	border-color: var(--mbz-red);
	color: #fff;
	outline: none;
}

.mbz-game__btn-step:disabled,
.mbz-game__comp-visual:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.mbz-game__amount {
	min-width: 1.75rem;
	text-align: center;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	font-size: 1.15rem;
}

.mbz-game__unit {
	font-size: 0.78rem;
	color: var(--mbz-text-muted);
	min-width: 3.2rem;
}

.mbz-game.is-pouring-comp .mbz-game__drum-inner {
	animation: mbz-fill-pulse 0.7s ease;
}

@keyframes mbz-fill-pulse {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.15); }
}

/* Post-mix scales */
.mbz-game__postmix {
	margin-bottom: 16px;
	padding: 14px;
	border: 1px solid var(--mbz-border);
	border-radius: var(--mbz-radius);
	background: #fff;
}

.mbz-game__postmix-title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-family: var(--mbz-font-heading);
}

.mbz-game__scales {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.mbz-game__scales li {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 10px;
	align-items: center;
	font-size: 0.85rem;
}

.mbz-game__scale {
	height: 8px;
	border-radius: 999px;
	background: #EEF0F2;
	overflow: hidden;
}

.mbz-game__scale i {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #AEB4BA, var(--mbz-red));
	transition: width 0.5s ease;
}

.mbz-game__postmix-copy {
	margin: 0;
	font-size: 0.9rem;
	color: var(--mbz-text-muted);
}

.mbz-game__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mbz-game__actions .btn {
	min-height: 44px;
}

.mbz-game__actions .btn[hidden] {
	display: none !important;
}

.mbz-game.is-locked .mbz-game__components {
	pointer-events: none;
}

/* —— Result —— */
.mbz-game__result {
	position: relative;
	margin-top: 8px;
}

.mbz-game__confetti {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.mbz-game__result-card {
	position: relative;
	z-index: 1;
	padding: clamp(20px, 3vw, 28px);
	border-radius: var(--mbz-radius-lg);
	border: 1px solid var(--mbz-border);
	background: var(--mbz-white);
	animation: mbz-result-in 0.45s ease;
}

.mbz-game__result-card--beton {
	border-color: rgba(221, 12, 13, 0.35);
	background: linear-gradient(135deg, #FFF1F1 0%, #FFFFFF 45%);
}

.mbz-game__result-card--rastvor {
	border-color: rgba(196, 165, 116, 0.5);
	background: linear-gradient(135deg, #F8F1E6 0%, #FFFFFF 45%);
}

.mbz-game__result-card--fail {
	border-color: rgba(11, 12, 13, 0.15);
	background: linear-gradient(135deg, #F5F6F7 0%, #FFFFFF 50%);
}

@keyframes mbz-result-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.mbz-game__result-eyebrow {
	margin: 0 0 6px;
	font-family: var(--mbz-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	color: var(--mbz-red);
	font-weight: 700;
}

.mbz-game__stars {
	margin: 0 0 6px;
	font-size: 1.4rem;
	letter-spacing: 0.12em;
	color: #D0D4D8;
}

.mbz-game__star.is-on {
	color: #C4A574;
}

.mbz-game__score {
	margin: 0 0 8px;
	font-family: var(--mbz-font-heading);
	font-weight: 800;
	font-size: 1.05rem;
}

.mbz-game__result-title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.mbz-game__result-text {
	margin: 0 0 20px;
	color: var(--mbz-text-muted);
	max-width: 640px;
}

.mbz-game__result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mbz-game__result-actions .btn {
	min-height: 44px;
}

.game-page__links {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--mbz-border);
}

.game-page__links--cta {
	margin: 28px 0 8px;
	padding: 20px 0 0;
}

.game-page__links p {
	margin: 0 0 16px;
	color: var(--mbz-text-muted);
}

.game-page__links-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* —— SEO / GEO content below game —— */
.game-seo {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 1px solid var(--mbz-border);
	max-width: 72ch;
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--mbz-text);
}

.game-seo h2 {
	margin: 1.55em 0 0.55em;
	font-family: var(--mbz-font-heading);
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.25;
	color: var(--mbz-text);
}

.game-seo h2:first-child {
	margin-top: 0;
}

.game-seo h3 {
	margin: 1.25em 0 0.45em;
	font-family: var(--mbz-font-heading);
	font-size: 1.1rem;
	line-height: 1.3;
}

.game-seo p {
	margin: 0 0 1em;
	color: var(--mbz-text);
}

.game-seo ul,
.game-seo ol {
	margin: 0 0 1.1em;
	padding-left: 1.35em;
}

.game-seo li {
	margin-bottom: 0.4em;
}

.game-seo a {
	color: var(--mbz-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Primary CTA buttons must stay white on red (beats .game-seo a / .entry-content a). */
.game-seo a.btn,
.game-page__links a.btn {
	text-decoration: none;
}

.game-seo a.btn--primary,
.game-seo a.btn--primary:hover,
.game-seo a.btn--primary:focus,
.game-seo a.btn--primary:active,
.game-page__links a.btn--primary,
.game-page__links a.btn--primary:hover,
.game-page__links a.btn--primary:focus,
.game-page__links a.btn--primary:active {
	color: #FFFFFF;
	text-decoration: none;
}

.game-seo__faq {
	margin: 1.1em 0 1.6em;
	max-width: none;
}

.game-seo__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45em 0.65em;
	margin: 0;
	font-size: 1rem;
}

.game-seo__nav span[aria-hidden="true"] {
	color: var(--mbz-text-muted);
}

@media (max-width: 700px) {
	.game-seo {
		margin-top: 36px;
		padding-top: 28px;
		font-size: 1rem;
	}

	.game-seo h2 {
		font-size: 1.2rem;
	}

	.game-page__links-actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* —— Responsive —— */
@media (max-width: 900px) {
	.mbz-game__stage {
		grid-template-columns: 1fr;
	}

	.mbz-game__components {
		display: flex;
		flex-wrap: nowrap;
		gap: 10px;
		overflow-x: auto;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}

	.mbz-game__component {
		flex: 0 0 auto;
		width: min(220px, 78vw);
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		justify-items: center;
		text-align: center;
		scroll-snap-align: start;
	}

	.mbz-game__comp-visual {
		flex-direction: column;
		justify-content: center;
	}

	.mbz-game__unit {
		min-width: 0;
	}

	.mbz-game__plant {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.mbz-game__steps {
		display: none;
	}

	.mbz-game__steps-compact {
		display: block;
	}

	.mbz-game__topbar {
		padding-right: 0;
		margin-top: 8px;
	}

	.mbz-game__sound {
		top: 10px;
		right: 10px;
	}
}

@media (max-width: 480px) {
	.mbz-game__mixer {
		gap: 8px;
	}

	.mbz-game__drum {
		width: 132px;
		height: 152px;
	}

	.mbz-game__workspace {
		min-height: 300px;
		padding: 20px 12px 16px;
	}

	.mbz-game__scales li {
		grid-template-columns: 90px 1fr;
	}

	.mbz-game__start {
		min-height: 320px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.mbz-game__start,
	.mbz-game__tip-card,
	.mbz-game__result-card,
	.mbz-game__fill,
	.mbz-game__cube,
	.mbz-game__scale i,
	.mbz-game__mix-progress-bar {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.mbz-game__drum.is-mixing {
		animation: none;
		outline: 3px solid rgba(221, 12, 13, 0.5);
	}

	.mbz-game__pour-stream {
		animation: none;
		opacity: 0.85;
	}
}

/* Keep game interactive surface below open mobile nav overlay */
body.nav-open .mbz-game {
	pointer-events: none;
}
