html, body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(#e4fbbb, #ffffff);
  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);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

canvas {
  background-color: #ffffff;
}

#GameDiv {
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

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


#GameCanvas {
  touch-action: none;
}

#BootCover {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.45s ease;
}
#BootCover.is-ready {
  opacity: 0;
  pointer-events: none;
}
.boot-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.boot-cover-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2vh;
}
@font-face {
  font-family: "ColorJoy";
  src: url("./splash/Fredoka-SemiBold.ttf") format("truetype");
  font-display: block;
}
.boot-cover-logo {
  display: flex;
  align-items: baseline;
  font-family: "ColorJoy", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: clamp(46px, 6.4vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  animation: boot-logo 1.8s ease-in-out infinite;
}
.boot-cover-logo span { color: #ff6b6b; }
.boot-cover-logo span:nth-child(2) { color: #ff9f43; }
.boot-cover-logo span:nth-child(3) { color: #ffcd38; }
.boot-cover-logo span:nth-child(4) { color: #5cc47a; }
.boot-cover-logo span:nth-child(5) { color: #48a8e8; }
.boot-cover-logo span:nth-child(6) { color: #7c7aff; margin-left: 0.22em; }
.boot-cover-logo span:nth-child(7) { color: #f472b6; }
.boot-cover-logo span:nth-child(8) { color: #2dc4b8; }
.boot-cover-hint {
  margin-top: 12px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.04em;
  color: #4a5c40;
}
.boot-arc {
  width: 36px;
  height: 36px;
  margin-top: 48px;
  border-radius: 50%;
  border: 3px solid rgba(186, 214, 150, 0.55);
  border-top-color: #ffb07a;
  border-right-color: #ffd65c;
  animation: boot-spin 1.35s linear infinite;
}
.boot-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: boot-float 5s ease-in-out infinite;
}
.boot-blob.b1 { width: 92px; height: 92px; left: 8%; top: 12%; background: rgba(255, 214, 92, 0.28); }
.boot-blob.b2 { width: 68px; height: 68px; right: 10%; top: 18%; background: rgba(255, 154, 168, 0.26); animation-delay: 0.6s; }
.boot-blob.b3 { width: 60px; height: 60px; left: 12%; bottom: 22%; background: rgba(176, 224, 132, 0.32); animation-delay: 1.1s; }
.boot-blob.b4 { width: 80px; height: 80px; right: 12%; bottom: 16%; background: rgba(255, 236, 200, 0.4); animation-delay: 0.3s; }
.boot-star {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: boot-twinkle 2.4s ease-in-out infinite;
}
.boot-star.s1 { width: 18px; left: 12%; top: 14%; animation-delay: 0s; }
.boot-star.s2 { width: 14px; right: 14%; top: 18%; animation-delay: 0.4s; }
.boot-star.s3 { width: 16px; left: 18%; top: 44%; animation-delay: 0.9s; }
.boot-star.s4 { width: 13px; right: 16%; top: 50%; animation-delay: 1.2s; }
.boot-star.s5 { width: 15px; left: 10%; bottom: 18%; animation-delay: 0.6s; }
.boot-star.s6 { width: 17px; right: 11%; bottom: 14%; animation-delay: 1.5s; }
@keyframes boot-spin {
  to { transform: rotate(-360deg); }
}
@keyframes boot-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes boot-twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(12deg); }
}
@keyframes boot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
