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: #1F1F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
}
#unity-logo {
  width: 204px;
  height: 120px;
  margin-top: 16px;
  background: url('webgl-logo.png') no-repeat center;
  background-size: contain;
}
#unity-loading-product-name {
  margin-top: 10px;
  max-width: min(92vw, 360px);
  padding: 0 12px;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

/* 圆环加载：深色底环 + 黑描边；进度为自 12 点顺时针白色填满 */
#unity-progress-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin-top: 0;
  margin-left: 0;
  transform: translateZ(0);
}
#unity-progress-ring-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 14px solid #333;
  box-shadow:
    0 0 0 2px #000,
    inset 0 0 0 2px #000;
  pointer-events: none;
}
#unity-progress-ring-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-sizing: border-box;
  --unity-load-progress: 0;
  background: conic-gradient(
    from 0deg,
    #fff 0deg,
    #fff calc(var(--unity-load-progress) * 360deg),
    transparent calc(var(--unity-load-progress) * 360deg)
  );
  /* 半径 80px，环宽约 14px；色标略重叠减少 mask 边缘锯齿 */
  -webkit-mask-image: radial-gradient(
    circle at center,
    transparent 65.5px,
    #000 66px,
    #000 79.5px,
    transparent 80px
  );
  mask-image: radial-gradient(
    circle at center,
    transparent 65.5px,
    #000 66px,
    #000 79.5px,
    transparent 80px
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
  transform: translateZ(0);
}
#unity-progress-ring-center {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.9);
}
#unity-loading-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
#unity-loading-percent {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

#unity-footer {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo {
  float: none;
  flex: 0 0 auto;
  width: 204px;
  height: 38px;
  background: url('webgl-logo.png') no-repeat left center;
  background-size: contain;
}
#unity-build-title {
  float: none;
  flex: 0 0 auto;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}
#unity-fullscreen-button {
  cursor: pointer;
  float: none;
  flex: 0 0 auto;
  margin-left: auto;
  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 }
