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;
	margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  }
  
  body {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	margin: 0;
  
	cursor: default;
	color: #000;
	background-color: #000000;
  
	text-align: center;
	font-family: Helvetica, Verdana, Arial, sans-serif;
  
	display: flex;
	flex-direction: column;
	
	/* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
	/* overflow cannot be applied in Cocos2dGameContainer, 
	otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
  }
  
  #Cocos2dGameContainer {
	position: fixed;
	margin: 0;
	overflow: hidden;
	left: 0px;
	top: 0px;
  
	display: -webkit-box;
	-webkit-box-orient: horizontal;
	-webkit-box-align: center;
	-webkit-box-pack: center;
  }
  
  canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0, 0);
  }
  
  a:link, a:visited {
	color: #666;
  }
  
  a:active, a:hover {
	color: #666;
  }
  
  p.header {
	font-size: small;
  }
  
  p.footer {
	font-size: x-small;
  }
  
  #splash {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
	--splash-vw: 100vw;
	--splash-vh: 100vh;
  }

  #splash-content {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--splash-vw);
	height: var(--splash-vh);
	transform: translate(-50%, -50%);
	background: var(--loading-splash-image, none) no-repeat center center / 100% 100%;
  }

  @supports (height: 100dvh) {
	#splash {
	  height: 100dvh;
	  --splash-vw: 100dvw;
	  --splash-vh: 100dvh;
	}
  }

  /* Stretch the complete loading page to the viewport and match Canvas rotation. */
  @media (orientation: portrait) {
	#splash-content {
	  width: var(--splash-vh);
	  height: var(--splash-vw);
	  transform: translate(-50%, -50%) rotate(90deg);
	}
  }

  #direct-entry-progress {
	position: absolute;
	left: 50%;
	top: 54.63%;
	transform: translate(-50%, -50%);
	width: 40.83%;
	height: 12.41%;
	background: var(--loading-progress-image, none) no-repeat center center / 100% 100%;
	box-sizing: border-box;
	overflow: hidden;
  }

  #direct-entry-progress-base,
  #direct-entry-progress-fill {
	position: absolute;
	left: var(--loading-window-left, 11.7347%);
	top: var(--loading-window-top, 29.8507%);
	width: var(--loading-window-width, 76.5306%);
	height: var(--loading-window-height, 47.7612%);
	overflow: hidden;
  }

  #direct-entry-progress-base {
	z-index: 0;
  }

  #loading-brand-logo {
	position: absolute;
	transform: translate(-50%, -50%);
	object-fit: contain;
	pointer-events: none;
  }

  #loading-brand-logo[hidden] {
	display: none;
  }

  .loading-progress-strip-tile {
	position: absolute;
	top: 0;
	height: 100%;
	background-repeat: no-repeat;
	pointer-events: none;
  }

  #direct-entry-progress-base .loading-progress-strip-tile,
  #direct-entry-progress-fill .loading-progress-strip-tile {
	will-change: transform;
  }

  #direct-entry-progress-base img {
	position: absolute;
	top: -9.375%;
	width: 10%;
	height: 112.5%;
	pointer-events: none;
  }

  #direct-entry-progress-fill {
	z-index: 1;
  }

  #direct-entry-progress-fill img {
	position: absolute;
	top: -7.8125%;
	width: 10%;
	height: 112.5%;
	transform: translateY(-106%);
	will-change: transform;
	pointer-events: none;
  }

  .gv2-direct-game #splash {
	position: fixed;
	z-index: 2000;
	background-color: #000;
  }

  #direct-entry-recovery[hidden] {
	display: none;
  }

  #direct-entry-recovery {
	position: fixed;
	left: 50%;
	bottom: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 2001;
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 420px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background: rgba(20, 25, 38, 0.94);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
  }

  #direct-entry-recovery-detail[hidden] {
	display: none;
  }

  #direct-entry-recovery-detail {
	box-sizing: border-box;
	max-height: 96px;
	margin: 10px 0 0;
	padding: 8px;
	overflow: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #dce6f6;
	font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  .direct-entry-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
  }

  .direct-entry-actions button {
	min-width: 68px;
	min-height: 36px;
	margin-left: 8px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
  }

  .direct-entry-actions button:last-child {
	border-color: #e1bf63;
	background: #e1bf63;
	color: #171c29;
  }
  
  .progress-bar {
	  position: absolute;
	  left: 27.5%;
	  top: 80%;
	  height: 3px;
	  padding: 2px;
	  width: 45%;
	  border-radius: 7px;
	  box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;           
  }
  
  .progress-bar span {
	  display: block;
	  height: 100%;
	  border-radius: 3px;
	  transition: width .4s ease-in-out;
	  background-color: #3dc5de;
  }
  
 
  #swipe {
	  margin: 0;
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: url(en_swipe.df549.gif);
	  background-repeat: no-repeat;
	  background-position: center;
	  background-color: #000000;
	  z-index: 1000;
	  background-size: contain;
	  opacity: .95;
	  overflow: hidden;
  }
  
  #orientation {
	  margin: 0 auto;
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: url(en_orientation.4f387.gif);
	  background-repeat: no-repeat;
	  background-position: center;
	  background-color: #000;
	  z-index: 1000;
	  background-size: contain;
	  visibility: hidden;
	  opacity: .95;
  }
  
  .mask {
	  height: 150vh;
	  width: 100vw;
	  z-index: 20;
	  display: none;
	  position: absolute;
	  top: 0%;
  }
  
  .absvh {
	  position: absolute;
	  height: 100vh;
  }
  
  .fullscreen-instructions-swipe {
	  width: 150px;
	  height: 150px;
	  position: fixed;
	  top: 75vh;
	  left: 50vw;
	  transform: translate(-50%, -50%);
	  animation-duration: 2s;
	  animation-name: fullscreen-swipe;
	  animation-iteration-count: infinite
  }
