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

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


/* campus-startup */
#CampusStartup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #173f32;
  opacity: 1;
  transition: opacity 220ms ease;
}

#CampusStartup::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: #4e9849;
}

#CampusStartup.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.campus-startup__content {
  position: relative;
  z-index: 1;
  width: min(78vw, 520px);
  margin-top: -10vh;
  text-align: center;
}

.campus-startup__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.campus-startup__tagline,
.campus-startup__status {
  margin: 0;
  color: #c8ddae;
  font-size: 14px;
  line-height: 1.5;
}

.campus-startup__tagline {
  margin-top: 8px;
}

.campus-startup__track {
  position: relative;
  overflow: hidden;
  width: 78%;
  height: 7px;
  margin: 72px auto 14px;
  border-radius: 4px;
  background: #093024;
}

.campus-startup__track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: #f6c655;
  animation: campus-startup-progress 8s cubic-bezier(.2,.7,.2,1) forwards;
}

#CampusStartup.has-error .campus-startup__track span {
  background: #e04f3d;
  animation-play-state: paused;
}

#CampusStartup.has-error .campus-startup__status {
  color: #ffd2c7;
}

@keyframes campus-startup-progress {
  0% { width: 8%; }
  55% { width: 68%; }
  100% { width: 92%; }
}
