* {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-drag: none;
	-webkit-user-drag: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	overscroll-behavior: none;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: #FFF;
	overflow: hidden;
}

#logo {
	position: relative;
	z-index: 995;
	width: 15.85%;
	height: auto;
	top: 5.15%;
	left: 2.5%;
	pointer-events: none;
}

.invisible {
	visibility: hidden !important;
	pointer-events: none !important;
}

.transparent {
	opacity: 0;
	pointer-events: none !important;
}

.hidden {
	display: none !important;
	pointer-events: none !important;
}


/* ---- fonts ---- */

@font-face {
	font-family: "Lorino RUS";
	src: url("../fonts/Lorino RUS.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Avenir Next Cyr";
	src: url("../fonts/avenirnextcyr-bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.highlight {
	color: #E54B0E;
}

/* ---- viewport / stage ---- */
#viewport {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

#stage {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3840px;
	height: 2160px;
	overflow: hidden;
	transform: translate(-50%, -50%) scale(var(--scale, 1));
}

/* ---- startscreen ---- */
#startscreen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #FFF;
	overflow: hidden;
	z-index: 200;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border: none;
}

.loader {
	display: flex;
	z-index: 900;
	/*border-top: 8px solid #E56925;*/
	border: 1.5vh solid #0066A655;
	border-top: 1.5vh solid #0066A6;
	border-radius: 50%;
	justify-content: center;
	width: 4%;
	aspect-ratio: 1 / 1;
	animation: spin 1s linear infinite;
	margin-left: 10px;
}


@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#startbutton {
	display: flex;
	z-index: 900;
	justify-content: center;
	width: 30%;
	background: #FFF;
	border: none;
	cursor: pointer;
}

#startbutton img {
	content: url("../assets/startbutton.webp");
	object-fit: contain;
}

#startbutton:disabled img {
	content: url("../assets/startbutton-disabled.webp");
	cursor: wait;
}

/* ---- scene ---- */
#scene {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: #FFF;
	overflow: hidden;
	z-index: 100;
}

/* ---- room ---- */
.room {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/*.room.active {*/
	/*display: block;*/
/*}*/

.background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	touch-action: none;
	pointer-events: none;
}

.items-container {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.item {
	position: absolute;
}

.item.image {
	display: block;
	touch-action: none;
	pointer-events: none;
}

.item.hitbox {
	cursor: pointer;
	z-index: 110;
	/*border: 3px solid red;*/
}

/* ---- character ---- */
.character {
	position: absolute;
	top: 0;
	left: 0;
}

.character-sprite {
	position: absolute;
	display: block;
	touch-action: none;
	pointer-events: none;
}

/* ---- per-room hud ---- */
.energybar-bar {
	position: absolute;
	z-index: 142;
}

.energybar-counter {
	position: absolute;
	text-align: left;
	font-family: 'Lorino RUS', sans-serif;
	font-weight: 700;
	color: #FFFFFF;
	line-height: 1;
	letter-spacing: 0.235em;
	z-index: 145;
}

/* ---- alert / dialogue ---- */

.world-sprite.character,
.alert-overlay,
.dialogue-box,
.dialogue-icon {
	opacity: 0;
	pointer-events: none;
}

.alert-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 150;
}

.alert-overlay.alert-active {
	pointer-events: inherit;
	opacity: 1;
}

.overlayed {
	background: rgba(10, 10, 20, 0.35);
}

.dialogue-icon.alert-active {
	opacity: 1;
}

.dialogue {
	position: absolute;
	pointer-events: none;
}

.world-sprite.character.alert-active {
	animation: character-pop-in 0.2s ease-out;
	opacity: 1;
}

.dialogue-box.alert-active {
	animation: alert-pop-in 0.2s ease-out;
	opacity: 1;
}

.dialogue-text {
 	white-space: pre-wrap;
	font-family: 'Avenir New Cur', sans-serif;
	font-size: 42pt;
	font-weight: 700;
	color: #0066A6;
	text-align: left;
	align-items: normal;
	justify-content: left;
}

.dialogue-text.narrator {
	border-radius: 50px;
	border: none;
	height: auto;
	background: #FFF;
	padding: 50px;
}

@keyframes alert-pop-in {
	from { transform: scale(0.85); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes character-pop-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

