body { padding: 0; margin: 0; background: #1a1a2e }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100dvw; height: 100dvh; }
#unity-canvas { display: block; width: 100dvw; height: 100%; max-height: 100dvh; background: #1a1a2e }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#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 }

#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #87CEEB;
  transition: opacity 0.5s ease;
}
#loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
#loading-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
#loading-bar-container {
  position: relative;
  z-index: 1;
  width: 70%;
  max-width: 280px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-bottom: 60px;
  overflow: hidden;
}
#loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #fff, #f0d060);
  border-radius: 4px;
  transition: width 0.3s ease;
}
#loading-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
