html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #0B0D13; /* Deep space dark blue/black background */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#unity-container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
#unity-container.unity-desktop, #unity-container.unity-mobile {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
#unity-canvas {
  background: #0B0D13;
  width: 100%;
  height: 100%;
  display: block;
}
.unity-desktop #unity-canvas, .unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

/* Fullscreen loading screen overlay */
#unity-loading-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #0C2F1A; /* Beautiful rich dark forest green to match in-game ScreenFader */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Central card/content wrapper */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 550px; /* Slightly larger as requested to give the logo room to breathe */
}

/* Logo container for clean aspect ratio preservation */
.logo-container {
  position: relative;
  width: 550px; /* Slightly larger main game loading screen logo */
  max-width: 90vw;
  aspect-ratio: 2048 / 1200;
  margin-bottom: 24px;
}

.logo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
}

.logo-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0px 0px 0px);
  -webkit-clip-path: inset(100% 0px 0px 0px);
  pointer-events: none;
}

/* Beautiful custom title for "BRICKTON" */
.loader-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(77, 163, 255, 0.45);
  background: linear-gradient(135deg, #FFFFFF 30%, #4DA3FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulse loading status text */
.loader-status {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: #D54C4F;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 8px;
  display: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 14px;
  max-width: 80%;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
