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: #888;
  background-color: #333;

  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 */
  overflow: hidden;
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  left: 0px;
  top: 0px;

  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

canvas {
  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: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1a082b 0%, #0c0316 65%, #05010a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-grid {
  display: none;
}

.splash-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.8;
}

.glow-1 {
  width: 360px;
  height: 360px;
  background: rgba(156, 39, 176, 0.45);
  top: 10%;
  left: 10%;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: rgba(124, 77, 255, 0.4);
  bottom: 10%;
  right: 10%;
  animation: pulseGlow 5s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 0.7; }
}

.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.cyber-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 2px dashed rgba(0, 229, 255, 0.6);
  border-top-color: #d500f9;
  border-bottom-color: #00e5ff;
  border-radius: 50%;
  animation: spinRing 4s linear infinite;
}

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

.game-logo {
  font-family: 'Impact', 'Orbitron', Arial, sans-serif;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff;
  text-shadow: 
    0 0 10px #00e5ff,
    0 0 20px #00e5ff,
    0 0 40px #d500f9,
    0 0 60px #d500f9;
  transform: skewX(-6deg);
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { text-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff, 0 0 30px #d500f9; }
  100% { text-shadow: 0 0 15px #00e5ff, 0 0 30px #00e5ff, 0 0 50px #d500f9, 0 0 70px #d500f9; }
}

.loading-status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  font-family: Arial, sans-serif;
}

.progress-box {
  width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 12px;
  padding: 2px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3), inset 0 0 8px #000;
  overflow: hidden;
  left: 0;
  top: 0;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ff007f);
  background-size: 200% 100%;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px #00e5ff;
  animation: gradientShift 2s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.progress-text {
  margin-top: 10px;
  font-family: 'Impact', Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #00e5ff;
}

#mask {
	position:absolute;
	z-index:9999;
	background-color:rgb(19, 19, 19);
	left: 0;
  top: 0;
	height:100%;
  width:100%;
	display :none;
	opacity:0.5;
}

#image {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./swipe.d7a8b.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  z-index: 99999;
  opacity: 1;
}

#handImage {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./touch.a70f8.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(20, 20, 20, 0.7);
  display :none;
  opacity: 1;
  background-size: 20%;
}

#enterFullscreen {
  border: none;
  margin: 0 auto;
  position: absolute;
  background: url(./enterFullscreenBlank.ba27a.png);
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.0);
  background-size: contain;
  display :block;
  opacity: 1;
}

#exitFullscreen {
  border: none;
  margin: 0 auto;
  position: absolute;
  background: url(./exitFullscreenBlank.ba27a.png);
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.0);
  background-size: contain;
  display :none;
  opacity: 1;
}