html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #231F20;
}
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
/* Letterboxed 960×600: same scale factor on phone and desktop (fit shorter side). */
#unity-container.unity-fit {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #231F20;
}
#unity-canvas { display: block; background: #231F20 }
.unity-fit #unity-canvas {
  box-sizing: border-box;
  margin: 0;
  flex-shrink: 0;
}
#unity-loading-bar {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(92vw, 320px);
  box-sizing: border-box;
}
#unity-logo {
  width: 154px;
  height: 130px;
  margin: 0 auto;
  background: url('unity-logo-dark.png') no-repeat center;
  flex-shrink: 0;
}
#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin: 10px 0 0;
  background: url('progress-bar-empty-dark.png') no-repeat center;
  position: relative;
  flex-shrink: 0;
}
#unity-progress-bar-full {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 18px;
  margin: 0;
  background: url('progress-bar-full-dark.png') no-repeat center;
}
#unity-load-caption {
  margin-top: 14px;
  width: 100%;
  max-width: min(300px, 92vw);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #ececec;
}
#unity-load-pct {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
#unity-load-sub {
  font-size: 12px;
  color: #c8c8c8;
  margin-top: 10px;
  line-height: 1.45;
  width: 100%;
}
#unity-footer { position: relative }
/* Footer: manual fullscreen only after load (see .game-ready in index.html). */
.unity-fit #unity-footer {
  display: none;
}
.unity-fit.game-ready #unity-footer {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: #231F20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
