html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  background: #20272c;
  cursor: default;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  touch-action: none;
  overscroll-behavior: none;
}

body,
canvas,
div {
  display: block;
  outline: none;
  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);
}

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

.header,
.footer {
  display: none !important;
}

#GameDiv {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  background: #20272c;
}

#Cocos3dGameContainer,
#GameCanvas {
  width: 100% !important;
  height: 100% !important;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
  touch-action: none;
}

.webgl-fallback {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 28px;
  color: #f8fafc;
  background: #20272c;
  text-align: center;
  line-height: 1.5;
}

.webgl-fallback strong {
  font-size: 24px;
  font-weight: 700;
}

.webgl-fallback span {
  max-width: 520px;
  color: #cbd5e1;
  font-size: 16px;
}

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