html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

#unity-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

#unity-canvas {
  display: block;
  background: #000;
  /* All positioning is handled by JS resizeCanvas() */
}

/* ── Loading splash screen ── */
/* Size & position are set by JS resizeCanvas() to match the game canvas */
#unity-loading-splash {
  position: absolute;
  background: #000 url('loading-bg.png') no-repeat center center;
  background-size: cover;
  z-index: 5;
  transition: opacity 0.4s ease;
  overflow: hidden;
  border-radius: 0;
}

#unity-loading-splash.hidden {
  opacity: 0;
  pointer-events: none;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: none;
  z-index: 10;
  text-align: center;
}

#unity-progress-bar-empty {
  width: 200px;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-empty-dark.png') no-repeat center;
  background-size: 100% 100%;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-full-dark.png') no-repeat center;
  background-size: 100% 100%;
}

#unity-loading-text {
  margin-top: 12px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

#unity-loading-progress {
  margin-top: 8px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  opacity: 0.9;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 20;
}

#unity-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

#unity-webgl-logo {
  float: left;
  width: 204px;
  height: 38px;
  display: none;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}

#unity-fullscreen-button {
  float: right;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
}
