
:root {
	--BAR-COLOR: url("./img/bg.png");
	--SHADOW-BOX: 0px 0px 0px 0px rgba(34, 60, 80, 0.2);
	--HEIGHT-LOADBAR: 18px;
	--TEXT-COLOR: #573213;
	--CODE-BG: #D8C297;
}
canvas:focus {
	outline: none;
}

@font-face {
	font-family: "CeraPro";
	src: url("./fonts/cerapro-black.ttf") format("truetype");
	font-weight: 900;  
	font-style: normal;
	font-display: swap;
}

html,
body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-size: 45%;
}


#unity-container {
	position: fixed;
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-repeat: no-repeat;
	background-size: cover;
}

#unity-canvas {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	-webkit-box-shadow: var(--SHADOW-BOX);
	-moz-box-shadow: var(--SHADOW-BOX);
	box-shadow: var(--SHADOW-BOX);
}
/* Экран загрузки */
#unity-loading-bar {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 9999;
}

#unity-logo,
#unity-logo-text,
#unity-loader-text {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 150px;
	height: 150px;
}
#unity-loader-text {
	top: 80%;
	width: 400px;
	height: 30px;
}
#unity-loader-text p{
	text-align: center;
	margin: 5px;
	font-family: "CeraPro";
	font-size: 14px;
	max-font-size: 14px;
	color: white;
}
#unity-logo {
	width: 100%;
	height: 100%;
	max-width: 650px;
	background-image: url('./img/logo.png?v=v0.76');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
#unity-logo-text{
	width: 332px;
	height: 126px;
	background-image: url('./img/logo-text.png?v=v0.76');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	top: 65%;
}
.loading-container-background{
	position: fixed;
	top: 84%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 310px;
	height: 28px;
	background-color: #654023;
	border-radius: 28px;
	overflow: hidden;
	display: block;
	box-shadow:
			0px 4px 1.9px 0px rgba(0,0,0,0.25),
			0px 2px 0px 0px #4C301A;
}

.loading-container {
	position: fixed;
	top: 84%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	height: 18px;
	background-color: #4D2E16;
	border-radius: 25px;
	overflow: hidden;
	display: block;
	box-shadow: inset 0px 2px 4.3px 0px rgba(0,0,0,0.25);

}

/* Полоса прогресса */
.loading-bar {
	height: 100%;
	width: 0%;
	background-color: #F1DAB2;
	border-radius: 25px;
	transition: width 0.3s ease;
}
#loading-screen {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	background-size: 100%;
	background-attachment: fixed;
	z-index: 9999;
	transition: opacity 0.5s ease;
	opacity: 1;
}

#loading-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	z-index: 9999;
	display: none;
}

.message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	font-size: 20px;
	-webkit-box-shadow: var(--SHADOW-BOX);
	-moz-box-shadow: var(--SHADOW-BOX);
	box-shadow: var(--SHADOW-BOX);
}

p {
	font-family: "CeraPro";
	font-weight: 900;
	font-size: 24px;
	max-font-size: 24px;
	color: var(--TEXT-COLOR);
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
	.overlay {
		display: block;
	}
}

@keyframes rotate-clockwise {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(15deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

.rotate-animation {
	width: 116px;
	height: 108px;
	animation: rotate-clockwise 2s linear infinite;
}

input,
textarea {
	caret-color: transparent;
	-webkit-user-select: none;
}


.error{
	position: fixed;
	inset: 0;
	display: none;           
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 9999;
}

.is-visible{
	display: flex !important;
}
.not-visible{
	display: none !important;
}
 .panel{
	width: 350px;
	height: 200px;
	position: relative;
	background-image: url("./img/error.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: drop-shadow(0px 10px 25px rgba(0,0,0,0.25));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 48px;
	box-sizing: border-box;
}
.popup .panel{
	height: 210px;
	background-size: 100% 100%;
	padding: 0;
}
 

#connerr-title, #send-code-title{
	white-space: pre-line;
	font-family: "CeraPro";
	font-weight: 900;
	margin: 0;
	margin-bottom: 15px;
	text-align: center;
	font-size: 18px;
	width: 300px;
	color: var(--TEXT-COLOR);
}
#send-code-title{
	font-size: 16px;
	margin: 0;
	margin-top: -10px;
}

.error-actions{
	width: 100%;
	max-width: 420px;
	display: grid;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.btn{
	font-family: "CeraPro";
	width: 192px;
	height: 48px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 48px;
	max-height: 48px;
	border-radius: 10px;
	font-size: 16px;
	line-height: 80%;
	color: #4C301A;
	border: 4px solid transparent;
	background:
			linear-gradient(#F1DAB3, #F1DAB3) padding-box,
			linear-gradient(180deg, #CEB488, #A2895F) border-box;
	cursor: pointer;
	position: relative; 
}

.btn::after{
	content: "";
	position: absolute;
	inset: 0px;
	border-radius: 8px;
	border: 1px solid #FFEECF;
	pointer-events: none;
	box-sizing: border-box;
}

/*.btn:active{*/
/*	transform: translateY(1px);*/
/*}*/

.popup-field{
	width: 264px;
	height: 56px;
	margin: 8px auto;
	border-radius: 9px;
	background: var(--CODE-BG);
	box-shadow: inset 0px 1px 2.9px 0px rgba(0,0,0,0.25);
	display: flex;
	align-items: center;
}

.popup-input{
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
	background: transparent;

	font-family: "CeraPro";
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;
	text-align: center;

	letter-spacing: 0;
	color: var(--TEXT-COLOR);
}

.popup-input::placeholder{
	color: rgba(90,58,31,.60);
}

.popup{
	position: fixed;
	inset: 0;
	opacity: 0.1;
	display: flex;
	align-items: center; 
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 9000;
}

.popup-wrap{
	position: relative;
	width: min(350px, 92vw);
}

.popup-wrap .panel{
	width: 100%;
	margin: 0;
}

.scroll-title{
	--scroll-gap: 14px;
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, calc(-100% - var(--scroll-gap)));
	width: 240px;
	height: 96px;

	background: url("./img/header.png") center / contain no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;

	pointer-events: none;
	z-index: 2;
}

.scroll-title p{
	white-space: pre-line;
	font-family: "CeraPro";
	font-weight: 900;
	font-size: 22px;
	max-font-size: 22px;
	line-height: 85%;
	letter-spacing: 0;
	color: var(--TEXT-COLOR);
}

.back-btn{
	position: fixed;
	left: 8px;
	top: 48px;
	width: 52px;
	height: 52px;
	border: 0;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	background: url("./img/back.png") center / cover no-repeat;
}

.no-uppercase{
	text-transform: none;
}

.btn:disabled{
	filter: brightness(0.85) saturate(0.85) grayscale(0.25);
	cursor: not-allowed;
}





