body { 
  padding: 0; 
  margin: 0;
  background: #000;
}

#unity-container { 
  position: absolute;
}

#unity-container.unity-desktop { 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%);
}

#unity-container.unity-mobile { 
  position: fixed; 
  width: 100%; 
  height: 100%;
}

#unity-canvas { 
  background: #231F20;
  display: block;
}

.unity-mobile #unity-canvas { 
  width: 100%; 
  height: 100%;
}

#unity-loading-bar { 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%); 
  display: none;
}

#unity-logo { 
  width: 154px; 
  height: 130px; 
  background: url('unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty { 
  width: 141px; 
  height: 18px; 
  margin-top: 10px; 
  margin-left: 6.5px; 
  background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full { 
  width: 0%; 
  height: 18px; 
  margin-top: 10px; 
  background: url('progress-bar-full-dark.png') no-repeat center;
}

/* ========== FOOTER STYLES ========== */

#unity-footer { 
  position: relative;
  height: 38px;
  background: rgba(35, 31, 32, 0.9);
  width: 100%;
  box-sizing: border-box;
}

/* Desktop Footer */
.unity-desktop #unity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

/* Mobile Footer - FIXED: Now visible on mobile! */
.unity-mobile #unity-footer { 
  display: flex !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(35, 31, 32, 0.95);
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 1000;
  /* Respect iPhone notch/home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

#unity-webgl-logo { 
  float: left; 
  width: 204px; 
  height: 38px; 
  background: url('webgl-logo.png') no-repeat center;
}

/* Hide logo on mobile to save space */
.unity-mobile #unity-webgl-logo {
  display: none;
}

#unity-build-title { 
  float: right; 
  margin-right: 10px; 
  line-height: 38px; 
  font-family: arial; 
  font-size: 18px;
  color: #fff;
}

/* Hide title on mobile to save space */
.unity-mobile #unity-build-title {
  display: none;
}

#unity-fullscreen-button { 
  cursor: pointer; 
  float: right; 
  width: 38px; 
  height: 38px; 
  background: url('fullscreen-button.png') no-repeat center;
  background-size: contain;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s, transform 0.1s;
}

/* Mobile fullscreen button - larger touch target */
.unity-mobile #unity-fullscreen-button {
  width: 44px;
  height: 44px;
  margin: 0;
  background-size: 24px 24px;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  /* Visual feedback on tap */
  opacity: 1;
}

.unity-mobile #unity-fullscreen-button:active {
  opacity: 0.7;
  transform: scale(0.95);
}

#unity-fullscreen-button:hover {
  opacity: 0.8;
}

#unity-fullscreen-button:active {
  opacity: 0.6;
  transform: scale(0.95);
}

#unity-warning { 
  position: absolute; 
  left: 50%; 
  top: 5%; 
  transform: translate(-50%); 
  background: white; 
  padding: 10px; 
  display: none;
  max-width: 90%;
  z-index: 1001;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}