body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; 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 { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; 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-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#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 }

/* mgp-webgl-branding-css */
/* mgp-webgl-branding-css */
/* Fullscreen control only — no full-width bar (avoids a thick black strip under the canvas). */
#unity-footer {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.5rem !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  padding: 0.5rem 0.75rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 999999 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#unity-footer #unity-webgl-logo,
#unity-footer #unity-logo-title-footer,
#unity-footer #unity-build-title,
#unity-footer .unity-logo {
  display: none !important;
}
/* Plain text button — label via ::after (Unity icon hidden). */
#unity-fullscreen-button,
#unity-footer #unity-fullscreen-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 6.5rem !important;
  min-height: 2.25rem !important;
  padding: 0.4rem 0.85rem !important;
  border: none !important;
  border-radius: 0.375rem !important;
  background-image: none !important;
  background-color: rgba(55, 65, 81, 0.95) !important;
  color: #f9fafb !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease !important;
}
#unity-fullscreen-button::after,
#unity-footer #unity-fullscreen-button::after {
  content: "Fullscreen" !important;
}
#unity-fullscreen-button:hover,
#unity-footer #unity-fullscreen-button:hover {
  background-color: rgba(75, 85, 99, 0.98) !important;
}
#unity-fullscreen-button:active,
#unity-footer #unity-fullscreen-button:active {
  background-color: rgba(31, 41, 55, 0.98) !important;
}
#unity-fullscreen-button img,
#unity-fullscreen-button svg {
  display: none !important;
}
/* Alternate ids across Unity versions */
#unity-footer [id$="fullscreen-button"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  min-height: 2.25rem !important;
  min-width: 6.5rem !important;
  padding: 0.4rem 0.85rem !important;
  border: none !important;
  border-radius: 0.375rem !important;
  background-image: none !important;
  background-color: rgba(55, 65, 81, 0.95) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #f9fafb !important;
}
#unity-footer [id$="fullscreen-button"]::after {
  content: "Fullscreen" !important;
}
#unity-footer [id$="fullscreen-button"]:hover {
  background-color: rgba(75, 85, 99, 0.98) !important;
}
#unity-footer [id$="fullscreen-button"]:active {
  background-color: rgba(31, 41, 55, 0.98) !important;
}
#unity-footer [id$="fullscreen-button"] img,
#unity-footer [id$="fullscreen-button"] svg {
  display: none !important;
}
#unity-loading-bar {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 480px !important;
  height: 120px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -999 !important;
  overflow: visible !important;
}
#unity-logo,
#unity-webgl-logo,
#unity-logo-title-footer,
#unity-build-title,
#unity-splash,
#unity-splash-screen,
#unity-boot-screen,
#splash-screen,
.unity-logo,
div[class*="unity-splash"],
div[class*="SplashScreen"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
img[src*="unity-logo"],
img[src*="Unity-logo"],
img[src*="progressLogo"],
img[src*="webgl-logo"],
img[src*="WebGL-Logo"],
img[src*="made-with-unity"],
img[alt*="Unity"],
img[alt*="unity"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
html,
body {
  background: #0b1220 !important;
  margin: 0 !important;
}
#mgp-brand-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  padding: 2rem;
  background: linear-gradient(180deg, #0b1220 0%, #1e293b 100%);
  transition: opacity 0.45s ease;
}
#mgp-brand-splash.mgp-brand-splash--hide {
  opacity: 0;
  pointer-events: none;
}
#mgp-brand-splash .mgp-brand-splash-logo {
  height: 48px;
  width: auto;
  max-width: min(360px, 85vw);
  margin-bottom: 2rem;
  object-fit: contain;
}
#mgp-brand-splash .mgp-brand-splash-track {
  width: min(360px, 80vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
#mgp-brand-splash .mgp-brand-splash-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.15s ease-out;
}

