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);
}

/* Shared overlay follows every game page without intercepting input. */
body::after {
  content: "";
  display: none; /* Set to block to restore the watermark. */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483647;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='140'%3E%3Ctext x='65' y='70' text-anchor='middle' transform='rotate(-25 65 70)' font-family='Arial,sans-serif' font-size='14' fill='%23c0c0c0' fill-opacity='.40'%3E%E5%86%85%E6%B5%8B%E6%95%B0%E6%8D%AE%20%E6%B3%84%E9%9C%B2%E6%98%AFgay%3C/text%3E%3C/svg%3E") repeat;
  background-size: 130px 140px;
}

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

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

p.header {
  font-size: small;
}

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

/* TRAILER original: FZPiaoTiS 40px, white, black 1px outline, right 20, bottom 16.8 (640 x 1120). */
@font-face {
  font-family: StartupOriginal;
  src: url('assets/main/native/3e/3e852122-9dfb-44dd-af55-04bb6a6e8c4b.7ef69/FZPiaoTiS.ttf.woff2') format('woff2');
  font-display: swap;
}
#startup-presentation {
  position: fixed;
  z-index: 10000;
  overflow: hidden;
  background: #000;
}
/* COMPANY_INFO original scene: 640 x 1120, logo sprite rect 512 x 279. */
#startup-company {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(640px * var(--company-scale));
  height: calc(1120px * var(--company-scale));
  transform: translate(-50%, -50%);
}
#startup-company-logo {
  position: absolute;
  left: 10%;
  top: 10.401785714%;
  width: 80%;
  height: auto;
}
#startup-company-info {
  position: absolute;
  top: 55.357142857%;
  width: 100%;
  padding: calc(10px * var(--company-scale)) 0;
  color: #fff;
  font: calc(26px * var(--company-scale))/1 Arial, sans-serif;
  text-align: center;
}
#startup-company-info p {
  margin: 0 0 calc(4px * var(--company-scale));
  line-height: calc(37.8px * var(--company-scale));
  white-space: nowrap;
}
#startup-company-info p:last-child { margin-bottom: 0; }
#startup-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.startup-label {
  position: absolute;
  right: calc(20px * var(--startup-scale));
  bottom: 1.5%;
  width: calc(162px * var(--startup-scale));
  height: calc(52.4px * var(--startup-scale));
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: calc(40px * var(--startup-scale))/1 StartupOriginal, serif;
  -webkit-text-stroke: calc(1px * var(--startup-scale)) #000;
  paint-order: stroke fill;
  cursor: pointer;
  animation: startup-original-fade 2s ease-in-out infinite;
}
#startup-presentation [hidden] { display: none; }
#startup-error { position: absolute; bottom: 10%; width: 100%; color: #fff; font-size: 14px; }
@keyframes startup-original-fade {
  0%, 12.5%, 100% { opacity: 1; }
  87.5% { opacity: 0.25; }
}
