* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0e;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Startet bei 50% der Bildschirmgroesse statt sofort Vollbild - so bleibt
   die Darstellung unabhaengig von Browser/Monitorgroesse konsistent.
   Ueber den Vollbild-Button kann trotzdem jederzeit auf echtes Vollbild
   gewechselt werden. */
#unity-container {
  position: relative;
  width: 50vw;
  height: 50vh;
  background: #0a0a0e;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* unityInstance.SetFullscreen() fullscreens the <canvas> itself, not #unity-container - see
   index.html's resizeCanvasToContainer() comment. These rules are for the (currently unused,
   kept for completeness) case of putting the container itself into fullscreen instead. */
#unity-container:fullscreen,
#unity-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  box-shadow: none;
}

#unity-canvas:fullscreen,
#unity-canvas:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  background: #0a0a0e;
}

#unity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: #0a0a0e;
}

#unity-loading-bar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0a0a0e;
}

#unity-loading-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 2px;
}

#unity-progress-bar-empty {
  width: 40%;
  max-width: 420px;
  height: 14px;
  border-radius: 7px;
  background: #25252f;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: #59a6ff;
  transition: width 0.15s ease-out;
}

#unity-loading-hint {
  color: #9a9aa5;
  font-size: 15px;
}

#unity-warning {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 14px;
  z-index: 10;
}

#unity-footer {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

#unity-build-title {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  letter-spacing: 1px;
}

#unity-fullscreen-button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

#unity-fullscreen-button:hover {
  background: rgba(89, 166, 255, 0.35);
  color: #ffffff;
}
