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: #FFFFFF }
.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 }

/* depthbreakers background */

@import url('https://fonts.googleapis.com/css2?family=Aldrich&display=swap');
html, body { height: 100%; }
body {
  background: url('login-bg.jpg') center / cover no-repeat #0a0a14;
  background-attachment: fixed;
  overflow: hidden;
}
/* Fill the browser window instead of the fixed 960x600. The desktop-branch JS in
   index.html sets inline canvas width/height in px, so these need !important. The
   footer is overlaid (position: fixed) so it does not consume canvas layout. */
#unity-container.unity-desktop {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  transform: none;
}
#unity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: url('login-bg.jpg') center / cover no-repeat #0a0a14 !important;
}
/* Footer removed entirely (mobile fullscreen button dropped: browser fullscreen
   broke the mobile soft keyboard and could not be reliably worked around). */
#unity-footer { display: none !important; }
#unity-warning { background: rgba(10, 10, 20, 0.97); color: #e0e6f0; border: 1px solid #2a2a3e; }
/* Loading-screen logo: replace Unity's logo with the site logo (served
   same-origin by Express, so the absolute /logo.png resolves under /play/).
   background-size:contain fits it inside the 154x130 box whatever its aspect. */
#unity-logo {
  background-image: url('/logo.png');
  background-size: contain;
  position: relative;
  /* Dark + accent glow that follows the logo silhouette (drop-shadow reads the
     PNG alpha) so it stays readable over the busy loading background. */
  filter: drop-shadow(0 0 12px rgba(10, 10, 20, 0.95)) drop-shadow(0 0 24px rgba(0, 168, 255, 0.5));
}
/* DEPTHBREAKERS caption centered under the loading logo (Aldrich + accent glow),
   sitting between the logo and the progress bar. The ::after is absolutely
   positioned (out of flow), so the progress bar is pushed down to clear it. */
#unity-logo::after {
  content: 'DEPTHBREAKERS';
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Aldrich', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: #e0e6f0;
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.6);
  /* Faded dark panel behind the text (radial fades to transparent at the
     edges) so it reads over the busy loading background. */
  padding: 6px 34px;
  background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.9) 0%, rgba(10, 10, 20, 0.6) 50%, rgba(10, 10, 20, 0) 82%);
}
/* Horizontal Unity progress bar (below the DEPTHBREAKERS caption) plus a
   spinning wheel centered beneath it (accent ring). */
#unity-progress-bar-empty { margin-top: 56px; position: relative; }
/* Numeric load percent (data-progress set by the loader callback) centered
   just below the bar. */
#unity-progress-bar-empty::before {
  content: attr(data-progress);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font-family: 'Aldrich', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: #e0e6f0;
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.6);
  white-space: nowrap;
}
#unity-progress-bar-empty::after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -20px;
  top: calc(100% + 46px);
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 4px solid rgba(224, 230, 240, 0.15);
  border-top-color: #00a8ff;
  border-radius: 50%;
  animation: dbk-spin 0.9s linear infinite;
}
@keyframes dbk-spin { to { transform: rotate(360deg); } }
