html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Fullscreen container + background */
#unity-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Ảnh nền che phần thừa */
  background: url('bg.jpg') center / cover no-repeat;
}

/* (Tuỳ chọn) phủ 1 lớp tối để game nổi hơn */
#unity-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

/* Canvas: game dọc 9:16, PC ưu tiên width 1080 nhưng sẽ tự co để vừa màn */
#unity-canvas {
  position: relative;
  z-index: 1;

  aspect-ratio: 9 / 16;
  width: min(1080px, 100vw, calc(100vh * 9 / 16));
  height: auto;
  max-height: 100vh;

  display: block;
  background: #000000;
}

/* Loading / warning nổi trên cùng */
#unity-loading-bar {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }

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