/* 启动画面沿用项目内的夕照群山和背身剑客原图。 */
#bootGate {
  position: fixed; inset: 0; z-index: 12000; isolation: isolate;
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  min-height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #15131a; color: #fff1dc;
  font-family: STKaiti, KaiTi, 'Songti SC', serif;
}
#bootGate[hidden], #bootGate.boot-done { display: none; }
#bootGate .boot-shade {
  min-height: min(42vh, 280px); flex: 1 0 auto; width: 100%; pointer-events: none;
}
#bootGate::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, #15131a80 62%, #15131a 100%),
    url('assets/gen/home-hero.png') 43% center / cover no-repeat;
}
#bootGate .boot-card { width: min(100%, 400px); text-align: center; }
#bootGate h1 {
  margin: 0; color: #fff0d6; font-size: clamp(32px, 8vw, 56px);
  letter-spacing: .13em; text-shadow: 0 2px 16px #160e12;
}
#bootGate .boot-sub { margin: 4px 0 12px; color: #f5cd9c; font-size: 15px; }
#bootGate .boot-track {
  box-sizing: border-box; height: 6px; overflow: hidden;
  border-radius: 6px; background: #f3ba8940;
}
#bootGate .boot-fill {
  width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ba642c, #ffcc85); transition: width .3s ease-out;
}
#bootGate .boot-status { margin: 6px 0; min-height: 18px; color: #ebcfb3; font: 12px/1.5 system-ui, sans-serif; }
#bootGate .boot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(100%, 400px); }
#bootGate .boot-enter {
  min-height: 44px; padding: 7px 22px; border-radius: 24px; border: 1px solid #f6be81;
  background: linear-gradient(#ffd39b, #df9453); color: #24140e;
  font: bold 17px/1.3 STKaiti, KaiTi, serif; cursor: pointer; touch-action: manipulation;
}
#bootGate .boot-secondary { color: #ffe7ca; background: #231923e6; border-color: #be8e67; }
#bootGate .boot-enter:disabled { opacity: .55; cursor: default; }
#bootGate .boot-enter:active:not(:disabled) { transform: translateY(1px); }
#bootGate .boot-enter:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#bootGate .boot-controls { margin: 9px 0 0; max-width: 400px; color: #efddcd; text-align: center; font: 12px/1.45 system-ui, sans-serif; }
@media (prefers-reduced-motion: reduce) { #bootGate .boot-fill { transition: none; } }
