/* ===== 开机动画（视频 + 进度条 + 点击跳过） ===== */
.boot-splash{
  position: fixed;
  inset: 0;
  /* 必须高于登录遮罩（2147483000），否则未登录时看不到开场动画 */
  z-index: 2147483600;
  display: block;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: opacity 1s ease;
  -webkit-tap-highlight-color: transparent;
  /* 兜底：即使脚本完全没跑起来，最多 18 秒也自动隐藏，绝不挡住登录 */
  animation: bootAutoHide 18s linear forwards;
}
@keyframes bootAutoHide{
  0%, 88% { visibility: visible; }
  100% { visibility: hidden; pointer-events: none; }
}
.boot-splash.is-out{ opacity: 0; pointer-events: none; }

.boot-splash video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* 底部进度条 + 提示 */
.boot-bar{
  position: absolute;
  left: 50%;
  bottom: calc(9vh + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(320px, 46vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
}
.boot-bar i{
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #fff;
  transition: width .18s linear;
}
.boot-tip{
  position: absolute;
  left: 50%;
  bottom: calc(9vh + 14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  color: rgba(255,255,255,.74);
  font-size: 12px;
  letter-spacing: .14em;
  white-space: nowrap;
  user-select: none;
}

/* 跳过 / 开启声音 */
.boot-pill{
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}
.boot-pill:hover{ background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.boot-pill:active{ transform: scale(.97); }
.boot-skip{ right: 22px; }
.boot-sound{ left: 22px; }

body.boot-on{ overflow: hidden; }

@media (max-width: 480px){
  .boot-tip{ font-size: 11px; }
  .boot-skip{ right: 14px; }
  .boot-sound{ left: 14px; }
}
