body { padding: 0; margin: 0 }
#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: #0A0A0A }
.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 }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#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 }

#custom-loading-screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
  z-index: 10;
  font-family: Arial, sans-serif;
  color: #ffffff;
  overflow: hidden;
}

.custom-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-logo-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.custom-logo-stack {
  position: relative;
  width: 64px;
  height: 128px;
  flex-shrink: 0;
}

.custom-glow {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(24px);
  transform: scale(1.4);
  border-radius: 999px;
}

.custom-square {
  position: absolute;
  left: 0;
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: translateY(-300px);
}

.custom-square-green {
  bottom: 0;
  background: #4ADE80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
  animation: drop-in 0.8s ease-out forwards;
}

.custom-square-purple {
  bottom: 64px;
  background: #A855F7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  animation: drop-in 0.8s ease-out 0.8s forwards;
}

.custom-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateX(-20px);
  filter: blur(6px);
  animation: text-in 0.8s ease-out 1.6s forwards;
  white-space: nowrap;
}

.custom-progress {
  width: 100%;
  max-width: 320px;
  margin-top: 64px;
  opacity: 0;
  animation: fade-in 0.6s ease-out 2s forwards;
}

.custom-progress-blocks {
  display: flex;
  gap: 6px;
}

.custom-progress-block {
  flex: 1;
  height: 12px;
  background: #2A2A2A;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.custom-progress-block.is-active:nth-child(odd) {
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.custom-progress-block.is-active:nth-child(even) {
  background: #A855F7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.custom-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9CA3AF;
  font-weight: 600;
}

@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-300px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes text-in {
  0% { opacity: 0; transform: translateX(-20px); filter: blur(6px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 640px) {
  .custom-logo-title {
    flex-direction: column;
    gap: 24px;
  }

  .custom-title {
    font-size: 24px;
    text-align: center;
  }
}
