@font-face { font-family: "LiberationSans"; src: url("LiberationSans.ttf") }
body { 
  padding: 0; 
  margin: 0; 
  height: 100vh; 
  display: flex; 
  justify-content: center; 
  align-items: center;
  background-color: #282828;
}
#unity-container { 
  position: relative; 
  width: 100%; 
  height: 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  max-width: 3840px;
  max-height: 2160px;
}
#unity-canvas { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #231F20;
}
#unity-loading-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #005288;
  z-index: 10;
}
#unity-loading-image {
  max-width: min(320px, 70vw);
  height: auto;
}

/* Center stack: image + title */
#unity-loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

#unity-loading-title {
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.1;
  margin: 0;
}

/* Bottom stack: radial + small grey line */
#unity-loading-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

#unity-loading-subtext {
  color: rgba(255, 255, 255, 0.65);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
}

/* Radial progress */
#unity-radial {
  width: 56px;
  height: 56px;
}

#unity-radial .track {
  stroke: rgba(255, 255, 255, 0.22);
}

#unity-radial .progress {
  stroke: rgba(255, 255, 255, 0.70);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 120ms linear;
}

/* Keep Unity's default bar in DOM for JS compatibility, but hide it visually */
#unity-loading-bar {
  display: none !important;
}

/* (Optional) Keep these default styles in case you unhide the bar later */
#unity-progress-bar-empty { width: 100%; height: 8px; background-color: rgba(255, 255, 255, 0.4); }
#unity-progress-bar-full { width: 0%; height: 100%; background-color: #ffe600; }
#unity-background { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: none; background: url('unity-background.png') }
#unity-fullscreen-button {
  position: absolute;
  top: 0vmin;
  right: 2vmin;
  width: 6vmin;
  height: 6vmin;
  background: url('fullscreen-button.png') no-repeat center;
  background-size: contain;
  z-index: 1000;
  cursor: pointer;
  display: none !important;
}
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
