: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);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #45302a;
  color: #45302a;
  font-family: Arial, Helvetica, sans-serif;
}
body,
canvas,
div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
body {
  position: absolute;
  inset: 0;
}
canvas {
  background: transparent;
  touch-action: none;
}
#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
}
#restaurant-loading {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff6e8;
  padding: 24px;
  text-align: center;
}
h1 {
  font-size: 36px;
  letter-spacing: 0.5px;
  margin: 18px 0 5px;
}
p {
  font-size: 14px;
  color: #886b56;
  max-width: 30rem;
  line-height: 1.5;
}
.cup {
  font-size: 48px;
  animation: breathe 2s ease-in-out infinite;
}
.loading-track {
  height: 4px;
  width: 180px;
  background: #e7dfca;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}
.loading-track i {
  display: block;
  width: 45%;
  height: 100%;
  background: #c88b49;
  animation: slide 1.8s ease-in-out infinite;
}
button {
  margin-top: 24px;
  border: 0;
  border-radius: 14px;
  background: #ae482c;
  color: #fff6e8;
  padding: 15px 24px;
  font-size: 16px;
}
button[hidden] {
  display: none;
}
@keyframes slide {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(330%);
  }
}
@keyframes breathe {
  50% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

#GameDiv {
  position: absolute !important;
  left: var(--safe-left, 0px);
  top: var(--safe-top, 0px);
  width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) !important;
  height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
}
