/* Reset básico */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

/* Contenedor Unity */
#unity-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}

/* Canvas Unity (se adapta a 16:9 con JS) */
#unity-canvas {
  background: white;
  position: absolute;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* Loading bar centrada */
#unity-loading-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

/* Logo Unity centrado */
#unity-logo {
  width: 154px;
  height: 130px;
  background: url('unity-logo-light.png') no-repeat center center;
  background-size: contain;
  margin-bottom: 10px;
}

/* Progress bar */
#unity-progress-bar-empty {
  width: 154px;
  height: 18px;
  background: url('progress-bar-empty-light.png') no-repeat center;
  background-size: contain;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

#unity-progress-bar-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: url('progress-bar-full-light.png') no-repeat center;
  background-size: contain;
  transition: width 0.3s ease;
}

/* Footer oculto */
#unity-footer,
.unity-mobile #unity-footer {
  display: none !important;
}

/* Banner de advertencias */
#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 10px;
  display: none;
  z-index: 10;
}

/* Adaptación para móviles */
.unity-mobile #unity-canvas {
  width: 100% !important;
  height: 100% !important;
}
