body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;

  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 178, 126, 0.32), transparent 30vw),
    radial-gradient(circle at 85% 12%, rgba(95, 180, 238, 0.28), transparent 28vw),
    linear-gradient(180deg, #eaf7e2 0%, #91cfae 48%, #2e6f62 100%);
  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 */
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv {
    margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw !important;
    height: 100vh !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

#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);
}


/* pokemon boot splash start */
.header,
.footer {
  display: none;
}

#BootSplash {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff8d9;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(160deg, #98d8a8 0%, #46a676 42%, #1c5d69 100%);
}

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

#BootSplash::before {
  content: "";
  position: absolute;
  inset: -10%;
  opacity: 0.22;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.32) 0 2px, transparent 2px 18px),
    linear-gradient(30deg, rgba(30, 86, 58, 0.22) 0 1px, transparent 1px 22px);
  animation: bootDrift 6s linear infinite;
}

.boot-card {
  position: relative;
  width: min(78vw, 340px);
  padding: 28px 24px 22px;
  border: 3px solid rgba(45, 64, 47, 0.88);
  border-radius: 22px;
  background: rgba(28, 57, 52, 0.72);
  box-shadow: 0 18px 44px rgba(13, 41, 42, 0.28);
  backdrop-filter: blur(6px);
}

.boot-title {
  color: #ffe072;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 0 rgba(31, 55, 48, 0.72);
}

.boot-subtitle {
  min-height: 22px;
  margin-top: 10px;
  color: rgba(255, 250, 222, 0.94);
  font-size: 15px;
}

.boot-hint {
  min-height: 18px;
  margin-top: 4px;
  color: rgba(255, 250, 222, 0.72);
  font-size: 12px;
}

.boot-bar {
  height: 12px;
  margin-top: 20px;
  overflow: hidden;
  border: 2px solid rgba(32, 48, 46, 0.9);
  border-radius: 999px;
  background: rgba(237, 247, 226, 0.28);
}

.boot-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e4f7ff, #62d8ff, #ffe680);
  animation: bootLoad 1.45s ease-in-out infinite;
}

.boot-actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

#BootSplash.is-slow .boot-actions {
  display: flex;
}

.boot-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid rgba(32, 48, 46, 0.9);
  border-radius: 999px;
  color: #20302e;
  font-weight: 700;
  background: #ffe680;
}

.boot-actions .boot-link {
  color: #fff8d9;
  background: rgba(255, 255, 255, 0.12);
}

.boot-version {
  margin-top: 12px;
  color: rgba(255, 250, 222, 0.48);
  font-size: 10px;
}

.boot-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.42;
}

.boot-orb-a {
  width: 140px;
  height: 140px;
  left: -32px;
  bottom: 18%;
  background: #ffe680;
}

.boot-orb-b {
  width: 180px;
  height: 180px;
  right: -62px;
  top: 16%;
  background: #8ae7ff;
}

@keyframes bootLoad {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(255%);
  }
}

@keyframes bootDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(42px, 0, 0);
  }
}
/* pokemon boot splash end */
