@font-face {
	font-family: "CeraPro";
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/CeraPro-Regular.woff2") format("woff2"),
	url("../fonts/CeraPro-Regular.woff") format("woff");
}

@font-face {
	font-family: "CeraPro";
	font-style: normal;
	font-weight: 500;
	src: url("../fonts/CeraPro-Medium.woff2") format("woff2"),
	url("../fonts/CeraPro-Medium.woff") format("woff");
}

@font-face {
	font-family: "CeraPro";
	font-style: normal;
	font-weight: 900;
	src: url("../fonts/CeraPro-Black.woff2") format("woff2"),
	url("../fonts/CeraPro-Black.woff") format("woff");
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	touch-action: manipulation;
}

:root {
	--red: #e80024;
	--black: #000000;
	--white: #ffffff;
	--grey: #222b36;
	--blue: #0b1577;
	--dark-red: #b50119;
	--light-grey: #ededed;

	--content-first-screen-width: 1062rem;
}

html {
	font-size: 0.3125vw;
	font-family: "CeraPro";
	overscroll-behavior-y: contain;
}

body {
	color: var(--white);
	font-size: 22rem;
	overscroll-behavior-y: contain;
}

canvas {
	display: none;
}

.in-game-avatar {
	position: fixed;
	top: calc(50% + 29rem);
	left: calc(50% + 29rem);
	z-index: 100;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
}

.user-stat {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 60rem;
	font-size: 10rem;
	font-weight: 500;
}

@media (min-width: 661px) {
	.user-stat {
		top: 60rem;
		font-size: 32rem;
	}
}

.user-stat__layout {
	position: relative;
	padding: 4rem 13rem 4rem 20rem;
	z-index: 2;
	background-image: linear-gradient(270deg, #E80024 0%, #000539 116.76%);
}

.user-stat__value {
	display: block;
	text-align: center;
}

@media (min-width: 661px) {
	.user-stat {
		top: 60rem;
		font-size: 32rem;
	}

	.user-stat__layout {
		padding: 20rem 40rem 20rem 80rem;
	}

	.user-stat__value {
		display: inline;
		text-align: left;
	}
}

.user-stat::before {
	content: "";
	position: absolute;
	width: calc(100% + 4rem);
	height: calc(100% + 4rem);
	left: 50%;
	top: 50%;
	z-index: 1;
	background-image: linear-gradient(
			to right,
			#d6c7a8,
			#f9f8f4,
			#b4996a,
			#ffcf4d
	);
	transform: translate(-50%, -50%);
}

.in-game-logo {
	position: fixed;
	top: 20rem;
	left: 50%;
	display: none;
	align-items: center;
	gap: 12rem;
	width: 206rem;
	transform: translateX(-50%);
}

.in-game-logo img:nth-child(2) {
	width: 22rem;
	height: 22rem;
}


.in-game-logo img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 661px) {
	.user-stat::before {
		width: calc(100% + 8rem);
		height: calc(100% + 8rem);
	}

	.in-game-logo {
		top: 60rem;
		width: 436rem;
	}
}

.mobile-controls {
	display: none;
}

.mobile-controls button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16rem;
	height: 16rem;
	background-image: url('../images/arrow.png');
	background-attachment:fixed;
	background-repeat: no-repeat;
	background-position: center;
	-o-background-size:16rem 16rem;
	-moz-background-size:16rem 16rem;
	-webkit-background-size:16rem 16rem;
	background-size: 16rem 16rem;
	transform: translate(-50%, -50%);
	opacity: 0.75;
}

@media (max-width: 660px) {
	.body_game .mobile-controls {
		display: grid;
	}

	.mobile-controls {
		position: fixed;
		bottom: 16rem;
		left: 50%;
		grid-template-columns: 58rem 98rem 58rem;
		grid-template-rows: 43rem 43rem;
		gap: 8rem;
		transform: translateX(-50%);
	}

	.mobile-controls button {
		position: relative;
		appearance: none;
		display: block;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.3);
		box-shadow: none;
		outline: none;
		border: none;
	}

	.mobile-controls button:hover {
		background-color: rgba(0,0,0,0.5);
	}

	.mobile-controls .left {
		grid-column: 1/2;
		grid-row: 1/3;
	}

	.mobile-controls .left::before {
		transform: translate(-50%, -50%) rotate(-90deg);
	}

	.mobile-controls .top {
		grid-column: 2/3;
		grid-row: 1/2;
	}

	.mobile-controls .right {
		grid-column: 3/4;
		grid-row: 1/3;
	}

	.mobile-controls .right::before {
		transform: translate(-50%, -50%) rotate(90deg);
	}

	.mobile-controls .bottom {
		grid-column: 2/3;
		grid-row: 2/3;
	}

	.mobile-controls .bottom::before {
		transform: translate(-50%, -50%) rotate(180deg);
	}
}

.body_game .user-stat {
	display: block;
}
.body_game .in-game-logo {
	display: flex;
}
.body_game .leaderboard {
	display: block;
}

.body_game {
	overflow: hidden;
}

.body_game .wrapper {
	height: 100vh;
}

.wrapper {
	min-height: 100vh;
	background-image: url("../images/bg-mobile.png");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.header {
	padding: 20rem 20rem 0;
}

.logo {
	display: flex;
	width: 206rem;
	gap: 12rem;
	align-items: center;
}

.logo img {
	display: block;
	width: 100%;
	height: auto;
}

.logo img:nth-child(2) {
	width: 22rem;
	height: 22rem;
}

.screen {
	display: flex;
	align-items: center;
	flex: 1;
	padding: 46rem 20rem;
}

.button {
	position: relative;
	appearance: none;
	display: block;
	width: 100%;
	padding: 2rem;
	font: inherit;
	border: none;
	cursor: pointer;
	text-decoration: none;
	overflow: hidden;
}

@media (min-width: 661px) {
	.button {
		padding: 4rem;
	}
}

.button span {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11rem 34rem;
	font-size: 20rem;
	line-height: 1;
	font-weight: 900;
	white-space: nowrap;
	text-transform: uppercase;
	color: var(--white);
	pointer-events: none;
}

.button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100% + 16rem);
	height: calc(750% + 8rem);
	z-index: 1;
	background-image: linear-gradient(
			to top,
			#d6c7a8,
			#f9f8f4,
			#b4996a,
			#ffcf4d
	);
	border-radius: 100%;
	transform: translate(-50%, -50%);
	animation: rotateLayout 4s infinite linear;
}

@keyframes rotateLayout {
	0% {
		transform: translate(-50%, -50%) rotate(0)
	}
	100% {
		transform: translate(-50%, -50%) rotate(360deg)
	}
}

.button_red span {
	background-color: var(--dark-red);
}

.button_blue span {
	background-color: var(--blue);
}

.button_red:hover span,
.button_red:active span {
	background-color: var(--red);
}

.button_blue:hover span,
.button_blue:active span{
	background-color: #111E96;
}



.hello {
	font-size: 14rem;
}

.hello p {
	margin-bottom: 30rem;
}

.hello__row {
	width: 100%;
	max-width: var(--content-first-screen-width);
	gap: 60rem;
	font-weight: 500;
}

.hello__heading  {
	display: block;
	width: 246rem;
	height: auto;
	margin-bottom: 20rem;
}

.instructions {
	position: relative;
	display: none;
	width: 100%;
	text-align: center;
}

.instructions__intro {
	margin-bottom: 30rem;
	font-size: 12rem;
	font-weight: 500;
}

.instructions__heading {
	width: 133rem;
	margin-bottom: 20rem;
}

.instructions__info {
	display: flex!important;
	padding: 0;
	gap: 10rem;
	list-style: none;
}

.splide-instructions {
	padding-bottom: 50rem;
}

.splide__pagination {
	gap: 12rem;
}

.splide__pagination__page {
	width: 10rem;
	height: 10rem;
}

.splide__pagination__page.is-active {
	background-color: #fff;
	transform: none;
	opacity: 1;
}

.splide-instructions .splide__pagination {
	top: 80rem;
}

@media (min-width: 661px) {
	.instructions .splide {
		overflow: visible!important;
	}

	.instructions .splide__track {
		overflow: visible!important;
	}
}

.instructions__info-item {
	font-size: 12rem;
}


.instructions__info-item:not(:first-child) {
	padding-right: 20rem;
}

.instructions__info-item img {
	width: 60rem;
	height: 60rem;
	margin-bottom: 10rem;
	object-fit: cover;
	border-radius: 100%;
}

.instructions__description {
	width: 100%;
	max-width: 220rem;
	margin: 0 auto;
}

@media (max-width: 660px) {
	.instructions__info_desktop {
		display: none!important;
	}
}
@media (min-width: 661px) {
	.instructions__info_mobile {
		display: none!important;
	}
}

@media (min-width: 661px) {
	.instructions__content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.instructions__description {
		width: 100%;
		max-width: 100%;
	}

	.instructions__heading {
		width: 432rem;
		margin-bottom: 24rem;
	}
	.instructions__intro {
		max-width: 640rem;
		margin: 0 auto 110rem auto;
		font-size: 22rem;
	}
	.instructions__info {
		flex-wrap: nowrap;
		justify-content: center;
		margin-bottom: 110rem;
	}
	.instructions__info-item {
		width: 320rem;
		font-size: 22rem;
	}
	.instructions__info-item img {
		width: 160rem;
		height: 160rem;
	}
	.instructions__info-item:last-child {
		width: 320rem;
	}
	.instructions .button {
		width: auto;
	}
	.instructions .button span {
		padding: 18rem 38rem;
	}
}

.heroes {
	position: relative;
	display: none;
}

.heroes__wrapper {
	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: center;
}

.heroes__intro {
	margin: 0 auto 36rem auto;
	font-size: 14rem;
	text-align: center;
	font-weight: 500;
}

.heroes__footer {
	display: flex;
	justify-content: center;
}

.heroes__footer .button {
	max-width: 435rem;
}

.heroes__heading {
	display: block;
	width: 236rem;
	height: auto;
	margin: 0 auto 24rem auto;
}

@media (min-width: 661px) {
	.heroes {
		width: 100%;
	}

	.heroes__content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.heroes__heading {
		width: 790rem;
		margin-bottom: 24rem;
	}

	.heroes__intro {
		width: 635rem;
		margin: 0 auto 72rem auto;
		font-size: 22rem;
	}

	.glider {
		margin-bottom: 110rem;
	}
}

.splide {
	width: 280rem;
	padding-bottom: 80rem;
}

.splide .splide__pagination {
	position: absolute;
	display: flex!important;
}

.splide__track {
	padding: 10rem!important;
}

.heroes__item_active {
	box-shadow: 0 0 6rem 0 #ffbb33;
}

.heroes__item:hover {
	box-shadow: 0 0 6rem 0 #ffbb33;
}

@media (min-width: 661px) {
	.splide {
		width: 100%;
		max-width: 800rem;
		padding-bottom: 110rem;
	}

	.splide__track {
		padding: 25rem!important;
	}

	.splide .splide__pagination {
		top: 280rem;
	}

	.heroes__item_active {
		box-shadow: 0 0 22rem 0 #ffbb33;
	}

	.heroes__item:hover {
		box-shadow: 0 0 22rem 0 #ffbb33;
	}
}

.heroes__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60rem;
	height: 60rem;
	border-radius: 100%;
	cursor: pointer;
}

.heroes__item + .heroes__item {
	margin-top: 13rem;
}

.heroes__item img {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 100%;
	object-fit: cover;
}

.splide__arrows {
	display: none!important;
}

@media (min-width: 661px) {
	.heroes__item {
		width: 108rem;
		height: 108rem;
	}

	.heroes__item + .heroes__item {
		margin-top: 54rem;
	}
}

.result__heading {
	display: block;
	width: 240rem;
	margin: 0 auto 24rem auto;
}

.result-table {
	margin-bottom: 28rem;
	font-size: 12rem;
}

.result-table__col {
	text-transform: uppercase;
}

.result-table__col:first-child {
	width: 130rem;
	font-weight: 500;
	text-align: right;
}

.result-table__row + .result-table__row {
	margin-top: 8rem;
}

.result-table__row {
	display: flex;
	gap: 8rem;
	align-items: flex-end;
}

.result {
	position: relative;
	display: none;
}

.result__avatar {
	position: absolute;
	left: 190rem;
	top: 150rem;
	width: 83rem;
	height: 83rem;
	border-radius: 100%;
}

.result__footer {
	display: flex;
	flex-direction: column;
	gap: 18rem;
	margin-bottom: 24rem;
}

.result__conclusion {
	margin-bottom: 48rem;
	font-size: 12rem;
	text-align: center;
}

.result .button span {
	padding: 11rem 20rem;
}

.result__socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12rem;
}

.result__socials ul {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 12rem;
}

.ya-share2__link {
	display: block;
	width: 32rem;
	height: 32rem;
	padding: 5rem;
	background-color: var(--blue);
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 100%;
	font-size: 0;
}

.ya-share2__item:first-child .ya-share2__link {
	background-image: url('../images/vk.png');
	background-size: 13rem 8rem;
}
.ya-share2__item:nth-child(2) .ya-share2__link {
	background-image: url('../images/tg.png');
	background-size: 12rem 10rem;
}
.ya-share2__item:last-child  .ya-share2__link {
	background-image: url('../images/ok.png');
	background-size: 8rem 14rem;
}

.result__social:hover,
.result__social:active {
	background-color: #111E96;
}

@media (min-width: 661px) {
	.result {
		width: 985rem;
		margin: 0 auto;
	}

	.result__heading {
		display: block;
		width: 100%;
		margin-bottom: 72rem;
	}

	.result-table {
		margin-bottom: 64rem;
		font-size: 28rem;
	}

	.result__avatar {
		left: 910rem;
		top: 100rem;
		width: 330rem;
		height: 330rem;
	}

	.result__conclusion {
		max-width: 700rem;
		margin: 0 auto 72rem auto;
		font-size: 22rem;
	}

	.result-table__row {
		gap: 22rem;
	}

	.result-table__col:first-child {
		width: 422rem;
	}

	.result__footer {
		flex-direction: row;
		justify-content: center;
		margin-bottom: 72rem;
	}

	.result__footer .button {
		width: 435rem;
	}

	.result .button span {
		padding: 15rem 30rem;
	}

	.result__social {
		width: 40rem;
		height: 40rem;
	}

	.result__socials {
		gap: 20rem;
	}

	.result__socials p {
		font-size: 24rem;
	}

	.ya-share2__item .ya-share2__link {
		width: 44rem;
		height: 44rem;
	}

	.ya-share2__item:first-child .ya-share2__link {
		background-size: 21rem 13rem;
	}
	.ya-share2__item:nth-child(2) .ya-share2__link {
		background-size: 19rem 17rem;
	}
	.ya-share2__item:last-child .ya-share2__link {
		background-size: 14rem 23rem;
	}
}

canvas {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

@media (min-width: 660px) {
	html {
		font-size: 0.052083333333333vw;
	}
	.body_hello .wrapper {
		background-image: url("../images/bg.jpg");
	}
	.wrapper {
		display: flex;
		flex-direction: column;
		background-image: url("../images/bg-dark.jpg");
	}
	.header {
		padding: 60rem 60rem 0;
	}
	.logo {
		width: 436rem;
	}
	.screen {
		padding: 0 60rem 48rem;
	}
	.hello__row {
		display: flex;
		align-items: center;
	}
	.button span {
		padding: 17rem 160rem;
		font-size: 32rem;
	}
	.hello {
		font-size: 22rem;
	}
	.hello p {
		margin-bottom: 0;
	}
	.hello__heading {
		width: var(--content-first-screen-width);
		margin-bottom: 60rem;
	}
	.second-screen {
		padding: 0;
		width: 793rem;
		margin: 0 auto;
	}
	.second-screen__wrapper {
		display: block;
	}
	.second-screen__intro {
		width: 632rem;
		margin: 0 auto 72rem auto;
		font-size: inherit;
	}
	.heading-image-2 {
		width: 100%;
	}
	.heroes-list {
		gap: 57rem;
		margin-bottom: 170rem;
	}
	.hero {
		width: 102rem;
		height: 102rem;
	}
	.hero::before {
		width: calc(100% + 8rem);
		height: calc(100% + 8rem);
	}
}

.back {
	appearance: none;
	position: absolute;
	z-index: 100;
	top: 75rem;
	left: 20rem;
	display: none;
	width: 30rem;
	height: 30rem;
	background-color: var(--grey);
	background-image: url('../images/back.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	border-radius: 100%;
	border: none;
	outline: none;
	box-shadow: none;
	cursor: pointer;
	transition: opacity 0.25s ease-in-out;
}

.back:hover {
	opacity: 0.83;
}

.body_instructions .back,
.body_heroes .back {
	display: block;
}

@media (min-width: 661px) {
	.back {
		top: 134rem;
		left: 60rem;
		width: 60rem;
		height: 60rem;
	}
}

.error {
	position: absolute;
	bottom: 80rem;
	left: 0;
	width: 100%;
	display: none;
	padding-top: 24rem;
	font-size: 20rem;
	text-align: center;
}

.tabs__buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 27rem;
	gap: 52rem;
	margin: 0 auto 24rem auto;
	background-image: url('../images/tabs.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.tabs__buttons_invert {
	background-image: url('../images/tabs_invert.png');
}

.tabs__control {
	appearance: none;
	outline: none;
	border: none;
	box-shadow: none;
	font-size: 10rem;
	font-weight: 900;
	white-space: nowrap;
	text-transform: uppercase;
	background: linear-gradient(117deg, #D6C7A8 16.5%, #F9F8F4 60.55%, #B4996A 92.53%, #FFCF4D 124.51%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	cursor: pointer;
	opacity: 0.8;
}

.tabs__control_active {
	cursor: default;
	pointer-events: none;
	opacity: 1;
}

.tabs__pane {
	display: none;
}

.tabs__pane_active {
	display: block;
}

.shared-stats {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 24rem;
	height: 220rem;
	width: 100%;
	margin: 0 auto 30rem auto;
}

.bar {
	position: relative;
	background-color: red;
	width: 37rem;
}

.bar:first-child {height: 75%}
.bar:nth-child(2) {height: 60%}
.bar:nth-child(3) {height: 45%}
.bar:nth-child(4) {height: 30%}
.bar:last-child {height: 15%}

.bar img {
	position: absolute;
	top: -20rem;
	left: 0;
	width: 37rem;
	height: 37rem;
}

.bar p {
	position: absolute;
	bottom: -15rem;
	left: 50%;
	font-size: 10rem;
	transform: translateX(-50%);
}

@media (min-width: 661px) {
	.tabs__buttons {
		width: 970rem;
		height: 65rem;
		gap: 243rem;
		margin: 0 auto 50rem auto;
	}

	.tabs__pane {
		height: 525rem;
	}

	.tabs__control {
		font-size: 28rem;
	}

	.shared-stats {
		width: 970rem;
		gap: 80rem;
		height: 100%;
		margin: 0 auto 60rem auto;
	}

	.bar {
		width: 80rem;
	}

	.bar img {
		position: absolute;
		top: -40rem;
		left: 0;
		width: 80rem;
		height: 80rem;
	}

	.bar p {
		bottom: -30rem;
		font-size: 20rem;
	}
}
body {
	position: relative;
}

.copyrights {
	position: absolute;
	left: 60rem;
	bottom: 16rem;
	font-size: 10rem;
	font-weight: lighter;
	opacity: 0.75;
}

.body_game .copyrights  {
	position: fixed;
	right: -140rem;
	left: auto;
	bottom: 175rem;
	transform: rotate(-90deg);
}

.body_game .copyrights span {
	display: block;
}

@media (max-width: 660px) {
	.body_game .copyrights  {
		right: -90rem;
		bottom: 105rem;
	}
	.copyrights {
		left: 24rem;
		font-size: 6rem;
	}
	.copyrights span {
		display: block;
	}
}
