﻿body { padding: 0; margin: 0; background: #000; overflow: hidden; }

/* Video element — behind everything */
#hlsVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  background: #000;
  display: none;
  pointer-events: none;
}

/* Unity container — fixed, full screen, transparent */
#unity-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

/* Unity canvas — transparent so video shows through */
#unity-canvas {
  width: 100%;
  height: 100%;
  background: transparent !important;
}

#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 { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; 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-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }


#rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#rotate-overlay.visible {
  display: flex;
}

.rotate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-align: center;
  padding: 0 32px;
}

.rotate-icon {
  font-size: 56px;
  animation: tilt 1.5s ease-in-out infinite;
}

.rotate-content p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

@keyframes tilt {
  0%, 100% { transform: rotate(-20deg); }
  50%       { transform: rotate(20deg); }
}
