:root {
	--default-color: #fecab2;
}

html.loading {
	overflow: hidden;
}

.loading-modal-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1000;
	pointer-events: none;
}

.loading-modal {
  	position: relative;
  	width: 100vw;
  	height: 100vh;
  	background-color: #ffcab3;
}

.loading-modal.loaded {
  	animation: loading-animation-modal 2s 4s ease-in-out forwards;
}

.loading-resource {
  	position: absolute;
	width: 100%;
  	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
}

.loading-img-wrap {
	height: 25vh;
	text-align: center;
	clip-path: circle(0 at 50% 50%);
}

.loading-img-wrap img {
	width: auto;
	height: 100%;
}

.loading-modal.loaded .loading-img-wrap {
  	animation: loading-animation-img 1s ease-in-out forwards;
}

.loading-name-wrap {
  	display: flex;
	flex-wrap: no-wrap;
	margin: 0 auto;
	justify-content: center;
}

.loading-name-char {
	display: inline-block;
	opacity: 0;
	filter: blur(5px);
	margin-left: 5px;
}

.loading-name-char:last-child {
	margin-left: 0;
}

.loading-modal.loaded .loading-name-char {
  	animation: loading-animation-name 2s calc(1s + 0.2s * var(--num)) ease-in-out forwards;
}

@keyframes loading-animation-modal {
	100% {
		opacity: 0;
		pointer-events: none;
	}
}

@keyframes loading-animation-img {
	0% {
		clip-path: circle(0 at 50% 50%);
	}
	100% {
		clip-path: circle(100% at 50% 50%);
	}
}

@keyframes loading-animation-name {
	0% {
		opacity: 0;
		filter: blur(5px);
		transform: scale(0.8);
	}
	80% {
		transform: scale(1.1);
	}
	100% {
		opacity: 1;
		filter: blur(0px);
		transform: scale(1);
	}
}