html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../fondo.jpg') center center / cover no-repeat fixed;
  font-family: Arial, sans-serif;
}

#unity-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-container.unity-desktop {
  width: auto;
  height: auto;
}

#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  display: block;
  width: 450px;
  height: 800px;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: 9 / 16;
  background: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.unity-mobile #unity-canvas {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: auto;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: 280px;
  text-align: center;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

#loading-text {
  margin-top: 10px;
  color: #ffffff;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

#unity-logo,
#unity-footer,
#unity-logo-title-footer,
#unity-fullscreen-button,
#unity-build-title {
  display: none !important;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  padding: 10px;
  display: none;
  z-index: 10;
}