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 { width: 100%; height: 100% }
#unity-canvas { 
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: url("cursor.png") 5 1, auto;;
}
.unity-mobile #unity-canvas { width: 100%; height: 100% }

/* ========== 进度条：放到右下角 ========== */
#unity-loading-bar {
  position: absolute;
  /* 右下角锚点 */
  right: 80px;
  bottom: 100px;
  /* ❗取消原来的居中transform */
  transform: none;
  display: none;
}
/* 隐藏Unity默认logo，示例截图没有logo */
#unity-logo {
  display:none;
}

/* 缩小进度条外框，原图924px → 改成420px，高度同步缩小 */
#unity-progress-bar-empty { 
  width: 420px; 
  height: 18px;  
  background: url('loading_progress_bg_1.png') no-repeat center;
  /* 缩小贴图，适配变小容器 */
  background-size: 420px 18px;
}

/* 如果你用clip‑path fillAmount模式，这里保留 */
#unity-progress-bar-full { 
  width: 100%;
  height:18px;
  background: url('loading_progress.png') no-repeat left center;
  background-size: 410px 10px;
  margin-left: 5px;
  /* margin-top: 12px; */
  --progress:0%;
  clip-path: inset(0 calc(100% - var(--progress)) 0 0);
}

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

/* 点击波纹 */
.click-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* 更粗边框 + 外发光，提升显眼度 */
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 14px rgba(255,255,255,0.7), inset 0 0 8px rgba(255,255,255,0.3);
    pointer-events: none;
    transform: translate(-50%,-50%) scale(0);
    animation: ripple-out 0.6s ease-out forwards;
    z-index: 150;
}

@keyframes ripple-out {
    0% {
        transform: translate(-50%,-50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%,-50%) scale(2.5);
        opacity: 0;
    }
}