html {
  -ms-touch-action: none;
}

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

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

body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  cursor: default;
  color: #888;
  background-color: #a94e20;
  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

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

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

#GameDiv::before {
  content: '';
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-image: var(--burger-wide-bg-url, none);
  background-repeat: no-repeat;
  /* One 4096x3072 outpaint is shared by Cocos and the browser gutter fill.
     Its central 1920px-tall view stays at exactly 100vh. */
  background-size: cover;
  background-position: center center;
}

body.burger-playing #GameDiv::before {
  display: none;
}

body.burger-playing {
  background: #a95127;
}

/* Extra-tall phones preserve the current gameplay width and reveal only the
   newly outpainted top/bottom. No global scale-down is introduced. */
@media (max-aspect-ratio: 9/16) {
  #GameDiv::before {
    background-size: cover;
    background-position: center center;
  }

}

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