body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;

  text-align: center;
  background-color: #000;
  background-image: url(./background.4d50e.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: Helvetica, Verdana, Arial, sans-serif;
}

body,
canvas,
div {
  outline: 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 */
}

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

canvas {
  background-color: rgba(0, 0, 0, 0);
}

a:link,
a:visited {
  color: #000;
}

a:active,
a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}

body #splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #171717;
  background-image: url(./background.4d50e.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

body #splash::before,
body #splash::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  z-index: 1;
}

body #splash::before {
  top: 31%;
  width: min(95vw, 680px);
  aspect-ratio: 1080 / 914;
  transform: translate(-50%, -50%);
  background: url(./light.e90f8.png) no-repeat center / contain;
  opacity: 0.85;
}

body #splash::after {
  top: 35%;
  width: min(95vw, 620px);
  aspect-ratio: 748 / 300;
  transform: translate(-50%, -50%);
  background: var(--splash-logo, url(./splash.8e06f.png)) no-repeat center / contain;
  z-index: 2;
}

body #splash .progress-bar {
  position: absolute;
  left: 50%;
  top: 80%;
  width: min(88vw, 390px);
  aspect-ratio: 763 / 52;
  transform: translate(-50%, -50%);
  background: url(./bkg_progres.ad755.png) no-repeat center / 100% 100%;
  z-index: 3;
}

body #splash .progress-track {
  position: absolute;
  left: 2.2%;
  right: 2.2%;
  top: 18%;
  bottom: 18%;
  overflow: visible;
}

body #splash .progress-track span {
  display: block;
  position: relative;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: url(./bar_progress.47ef0.png) no-repeat left center / 100% 100%;
  transition: width 0.3s ease-in-out;
}

body #splash .progress-track span::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50%;
  width: clamp(24px, 7vw, 36px);
  aspect-ratio: 76 / 78;
  transform: translateY(-50%);
  background: url(./chip.b31e4.png) no-repeat center / contain;
}

body #splash .loading-tip {
  position: absolute;
  left: 10%;
  top: 83.5%;
  width: 80%;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(12px, 2.9vw, 16px);
  line-height: 1.45;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  animation: fade-in 0.5s ease-in-out;
  z-index: 3;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  color: #444;
  text-shadow: 3px 3px 15px;
}

#GameDiv {
  width: 800px;
  height: 450px;
  margin: 0 auto;
  background: black;
  position: relative;
  border: 3px solid black;
  border-radius: 6px;
  box-shadow: 0 5px 40px #333
}