/* ════════════════════════════════════════
   DOLF 启动加载层 (v0.11.9)
   风格：军事 HUD 青色科技感
   配色：与 MenuScene createHUDBackground 保持一致
   - 主色 #22d3ee（HUD 青）
   - 副色 #3b82f6（深蓝）
   - 面板底 #0a1020
   - 边框 #2a5a8a
   ════════════════════════════════════════ */
:root {
  --hud-cyan: #22d3ee;
  --hud-cyan-soft: rgba(34, 211, 238, 0.35);
  --hud-blue: #3b82f6;
  --hud-bg: #0a1020;
  --hud-bg-deep: #080c14;
  --hud-border: #2a5a8a;
  --hud-text: #e0f0ff;
  --hud-text-dim: #6b8caf;
}
#boot-loader {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 18px;
  background:
    radial-gradient(ellipse at center, #0c182e 0%, #080c14 60%, #050608 100%);
  z-index: 9999;
  font-family: 'Consolas', 'Menlo', 'Courier New', monospace;
  color: var(--hud-text);
  user-select: none; -webkit-user-select: none;
  transition: opacity 0.6s ease-out;
}
#boot-loader.fade-out { opacity: 0; pointer-events: none; }
#boot-loader.hidden { display: none; }

/* 背景扫描线 */
#boot-loader::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(34, 211, 238, 0.03) 2px,
    rgba(34, 211, 238, 0.03) 3px
  );
  pointer-events: none;
}
/* 角落装饰角标 */
.corner {
  position: absolute; width: 36px; height: 36px;
  border: 1.5px solid var(--hud-cyan-soft);
}
.corner.tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.corner.tr { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.corner.br { bottom: 24px; right: 24px; border-left: none; border-top: none; }

/* 顶部小字 */
.top-tag {
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 6px; color: var(--hud-text-dim);
  font-weight: bold;
}
.top-tag .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--hud-cyan); margin: 0 8px 1px;
  box-shadow: 0 0 8px var(--hud-cyan);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* 主标题 */
.title-block { text-align: center; margin-bottom: 48px; }
.title-cn {
  font-size: 14px; letter-spacing: 12px;
  color: var(--hud-cyan); margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.title-en {
  font-size: 38px; font-weight: bold; letter-spacing: 8px;
  color: var(--hud-text);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  font-family: 'Consolas', 'Menlo', monospace;
}
.title-sub {
  margin-top: 8px; font-size: 11px; letter-spacing: 4px;
  color: var(--hud-text-dim);
}

/* 进度条容器 */
.progress-wrap {
  width: 480px; max-width: 80vw;
  position: relative;
  margin-bottom: 18px;
}
.progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: 3px;
  color: var(--hud-text-dim);
  margin-bottom: 8px;
}
.progress-label .pct {
  color: var(--hud-cyan); font-size: 18px; font-weight: bold;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
  font-variant-numeric: tabular-nums;
}

/* 进度条本体 */
.progress-track {
  position: relative;
  width: 100%; height: 14px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.6),
    0 0 0 1px rgba(34, 211, 238, 0.08);
  /* 斜切角 */
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background:
    linear-gradient(90deg,
      var(--hud-blue) 0%,
      var(--hud-cyan) 70%,
      #88f0ff 100%);
  box-shadow:
    0 0 12px var(--hud-cyan),
    inset 0 0 4px rgba(255,255,255,0.4);
  transition: width 0.25s ease-out;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
/* 流光效果 */
.progress-fill::after {
  content: '';
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 30px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.7) 50%,
    transparent);
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-30px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(30px); opacity: 0; }
}
/* 刻度线 */
.progress-track::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(10% - 1px),
    rgba(42, 90, 138, 0.4) calc(10% - 1px),
    rgba(42, 90, 138, 0.4) 10%
  );
  pointer-events: none;
}

/* 状态文字 */
.status {
  margin-top: 16px;
  text-align: center;
  font-size: 11px; letter-spacing: 2px;
  color: var(--hud-text-dim);
  min-height: 14px;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .title-en { font-size: 26px; letter-spacing: 5px; }
  .title-cn { font-size: 12px; letter-spacing: 8px; }
  .progress-wrap { width: 86vw; }
  .top-tag { font-size: 9px; letter-spacing: 4px; }
  .corner { width: 24px; height: 24px; }
  .corner.tl, .corner.tr { top: 14px; }
  .corner.bl, .corner.br { bottom: 14px; }
  .corner.tl, .corner.bl { left: 14px; }
  .corner.tr, .corner.br { right: 14px; }
}
