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

#unity-container {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: none !important; /* Hide browser cursor over the canvas */
}

/* Loading overlay */
#unity-loading {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
}

#unity-loading.hidden {
  display: none;
}

#unity-loading-inner {
  width: min(520px, 85vw);
  padding: 20px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#unity-loading-title {
  font-size: 18px;
  margin-bottom: 12px;
  opacity: 0.95;
}

#unity-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

#unity-progress-bar {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
}

#unity-loading-hint {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.8;
}

/* Banner area for warnings/errors */
#unity-warning {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  pointer-events: none;
}

.unity-banner {
  margin: 0 0 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
}

.unity-banner.error {
  color: #fff;
  background: rgba(180, 30, 30, 0.92);
}
