html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  background: #f8f4e9;
  cursor: default;
  font-family: Helvetica, Verdana, Arial, sans-serif;
}

body,
canvas,
div {
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

canvas {
  display: block;
  background: transparent;
}

#paw-loading {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#d9edf0 0 52%, #91caa8 52% 100%);
  color: #403f39;
  transition: opacity 180ms ease;
}

body.game-ready #paw-loading {
  opacity: 0;
  pointer-events: none;
}

.paw-loading-card {
  width: min(420px, calc(100vw - 48px));
  padding: 28px 26px 24px;
  border: 2px solid #5f6f60;
  border-radius: 14px;
  background: #fffdf7;
  box-shadow: 0 18px 40px rgba(64, 63, 57, 0.18);
  text-align: center;
}

.paw-loading-scene {
  position: relative;
  height: 170px;
  overflow: hidden;
  border: 2px solid #d1c6ad;
  border-radius: 12px;
  background: #d9edf0;
}

.paw-loading-scene::after {
  position: absolute;
  right: -24px;
  bottom: -38px;
  left: -24px;
  height: 78px;
  border-top: 2px solid #5f6f60;
  background: #91caa8;
  content: "";
}

.paw-sun {
  position: absolute;
  top: 18px;
  right: 34px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5be53;
}

.paw-house {
  position: absolute;
  left: 54px;
  bottom: 36px;
  width: 132px;
  height: 80px;
  border: 2px solid #5f6f60;
  border-radius: 8px 8px 4px 4px;
  background: #ffdbc7;
}

.paw-roof {
  position: absolute;
  left: -12px;
  top: -36px;
  width: 152px;
  height: 48px;
  border: 2px solid #5f6f60;
  border-radius: 8px;
  background: #f58469;
  transform: skewY(-10deg);
}

.paw-door {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 36px;
  height: 52px;
  border: 2px solid #5f6f60;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #fffdf7;
}

.paw-pet {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  width: 52px;
  height: 46px;
  border: 2px solid #5f6f60;
  border-radius: 42% 42% 36% 36%;
}

.paw-cat {
  right: 112px;
  background: #ffb457;
}

.paw-cat::before,
.paw-cat::after {
  position: absolute;
  top: -13px;
  width: 18px;
  height: 18px;
  border: 2px solid #5f6f60;
  background: #ffb457;
  content: "";
  transform: rotate(45deg);
}

.paw-cat::before {
  left: 6px;
}

.paw-cat::after {
  right: 6px;
}

.paw-dog {
  right: 42px;
  background: #84c0f6;
}

.paw-dog::before,
.paw-dog::after {
  position: absolute;
  top: 6px;
  width: 15px;
  height: 28px;
  border: 2px solid #5f6f60;
  border-radius: 8px;
  background: #6197d4;
  content: "";
}

.paw-dog::before {
  left: -12px;
}

.paw-dog::after {
  right: -12px;
}

.paw-loading-title {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.paw-loading-copy {
  margin-top: 8px;
  color: #6f6a60;
  font-size: 16px;
}

.paw-loading-bar {
  height: 12px;
  margin-top: 20px;
  overflow: hidden;
  border: 2px solid #d1c6ad;
  border-radius: 999px;
  background: #efe8db;
}

.paw-loading-bar span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: 999px;
  background: #f58469;
  animation: paw-load 1.1s ease-in-out infinite alternate;
}

@keyframes paw-load {
  from {
    transform: translateX(-18%);
  }
  to {
    transform: translateX(88%);
  }
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

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