html {
	-ms-touch-action: none;
}

body,
canvas,
div {
	display: block;
	outline: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	-khtml-user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	/* display: none; <- Crashes Chrome on hover */
	-webkit-appearance: none;
	/* <-- Apparently some margin are still there even though it's hidden */
	margin: 0;
}

body {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	margin: 0;
	cursor: default;
	color: #888;
	background-color: #333;
	text-align: center;
	font-family: Helvetica, Verdana, Arial, sans-serif;
	display: flex;
	flex-direction: column;
}

canvas {
	background-color: rgba(0, 0, 0, 0);
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
	width: 100%;
	height: 100%;
}

:root {
	--safe-top: env(safe-area-inset-top);
	--safe-right: env(safe-area-inset-right);
	--safe-bottom: env(safe-area-inset-bottom);
	--safe-left: env(safe-area-inset-left);
}

#splash {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 10;
	background: #000;
	overflow: hidden;
}

#splash-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	display: block;
}

#splash-container {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 10;
}

#progress-bar {
	position: relative;
	width: min(60vw, 300px);
	height: 6px;
	background: rgba(0, 0, 0, 0.32);
	border: 1px solid rgba(255, 214, 140, 0.65);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	/* --progress: 0~1 填充比例 */
	--progress: 0;
}

#progress-fill {
	width: calc(var(--progress) * 100%);
	height: 100%;
	background: linear-gradient(90deg, #c99948, #ffd77a 55%, #fff3cf);
	border-radius: 3px;
}

#loading-text {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 14px;
	font-family: Arial, sans-serif;
	font-weight: normal;
	color: rgba(255, 235, 190, 0.95);
	font-size: 14px;
	text-align: center;
	line-height: 1.2;
	white-space: nowrap;
	letter-spacing: 2px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

#age-rating {
	position: absolute;
	left: 16px;
	top: 16px;
	width: 43px;
	height: auto;
	display: block;
	z-index: 11;
	pointer-events: none;
}