* {
	padding: 0;
	margin: 0;
}

html {
	overflow: hidden;
	height: 100%;
	overscroll-behavior: none;
	touch-action: none;
}

body {
	background: #000000;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
	touch-action: none;

	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: flex;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

#app-container {
	background-color: #000000;
	display: flex;
}

#gameCanvas {
	background: #000000;
	transform: translateZ(0);
}

/* Затенение фона */
#shadow-a {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999999;
	width: 100%;
	height: 100%;
	background-color: #000000;
	-moz-opacity: 0.75;
	-webkit-opacity: 0.75;
	-khtml-opacity: 0.75;
	opacity: 0.75;
	filter: Alpha(Opacity=50);
}

/* ============================================
   HTML Preloader Styles
   ============================================ */

#html-preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	overflow: hidden;
	background: none;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.1s ease-out, visibility 0.1s ease-out;
}

#html-preloader::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url(31dc31aaf1655f405e47.png) center center / 100% 100% no-repeat;
}

#html-preloader::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;

	/* Pixi analogue:
	   - TilingSprite(bg_pattern) with tint 0x31255f
	   - Pattern scale follows viewport width: scale = w / 1920
	     so one 256px tile becomes 256 * (w/1920) in CSS pixels.
	*/
	background-color: #31255f;

	-webkit-mask-image: url(76fe1256a33a6991858b.png);
	-webkit-mask-repeat: repeat;
	-webkit-mask-size: calc(100vw * 256 / 1920) calc(100vw * 256 / 1920);
	-webkit-mask-position: 0 0;

	mask-image: url(76fe1256a33a6991858b.png);
	mask-repeat: repeat;
	mask-size: calc(100vw * 256 / 1920) calc(100vw * 256 / 1920);
	mask-position: 0 0;
}

#html-preloader.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.preloader-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px;
	transform-origin: center center;
	position: relative;
	z-index: 1;
}

.preloader-logo {
	width: 140px;
	height: auto;
	margin-bottom: 20px;
	animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.preloader-title {
	font-family: 'Lilita One', 'LilitaOne-Regular', sans-serif;
	font-size: 72px;
	font-weight: 400;
	color: #ffe00c;
	text-transform: uppercase;
	text-align: center;
	filter: drop-shadow(0px 5px 0px #ce6200);
	line-height: 1.1;
	margin-bottom: 40px;
}

.preloader-title span {
	display: block;
	white-space: nowrap;
}

.preloader-loading-text {
	font-family: 'LilitaOne-Regular', 'Arial', sans-serif;
	font-size: 60px;
	font-weight: normal;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	margin-bottom: 15px;
}

.preloader-progress {
	position: relative;
	width: 509px;
	height: 59px;
}

.progress-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(fde6b9da0f495e08998b.png) no-repeat center;
	background-size: 100% 100%;
}

.progress-fill-container {
	position: absolute;
	top: 4.5px;
	left: 8px;
    display: flex;
	width: calc(100% - 16px);
	height: calc(100% - 20px);
	overflow: hidden;
}

.progress-fill-container .left {
    width: 20px;
    height: 37px;
    background: url(5e31ffcb044901e52c3b.png) no-repeat left center / contain;
    background-size: 100% 100%;
    margin-left: 3px;
    z-index: 1;
}

.progress-fill-container .center {
    flex: 0;
    height: 37px;
    background: url(796da99cfcbf11b6c494.png) repeat-x;
    background-size: auto 100%;
    transition: flex 0.3s ease-out;
}

.progress-fill-container .right {
    width: 20px;
    height: 37px;
    background: url(d54cfab0f67b856f8de2.png) no-repeat left center / contain;
    background-size: 100% 100%;
    margin-right: 3px;
    z-index: 1;
}

/* Start Button */
.preloader-start-btn {
	display: none;
	margin-top: 30px;
	width: 361px;
	height: 172px;
	font-family: 'LilitaOne-Regular', 'Arial Black', sans-serif;
	font-size: 72px;
	font-weight: normal;
	color: #ffffff;
	background: url(dd3cb3001473ed4f2d1c.png) no-repeat center;
	background-size: 100% 100%;
	border: none;
	cursor: pointer;
	padding-bottom: 10px;
	text-shadow: 
		-2px -2px 0 #23ae0f,
		2px -2px 0 #23ae0f,
		-2px 2px 0 #23ae0f,
		2px 2px 0 #23ae0f,
		0 -2px 0 #23ae0f,
		0 2px 0 #23ae0f,
		-2px 0 0 #23ae0f,
		2px 0 0 #23ae0f;
	transition: transform 0.1s ease, filter 0.1s ease;
}

.preloader-start-btn:hover {
	transform: translateY(-2px) scale(1.02);
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

.preloader-start-btn:active {
	transform: translateY(2px) scale(0.98);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.preloader-start-btn.visible {
	display: block;
	animation: buttonAppear 0.3s ease-out;
}

@keyframes buttonAppear {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}


