/* Lightweight HTML loader, shown while Flutter initializes. */
#startup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  background: #edf5ff;
  color: #233b56;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#startup .startup-surface {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom));
  background: #edf5ff url("entry/images/entry/startup-bg.jpg") center / cover no-repeat;
}
.startup-content { width: 100%; text-align: center; transform: translateY(-18px); }
.startup-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto; }
.startup-symbol { width: 70px; height: auto; }
.startup-wordmark { width: 77px; height: auto; }
.startup-loader { position: relative; width: 32px; height: 32px; margin: 32px auto 18px; }
.startup-orbit { position: absolute; inset: 0; border: 2px solid #247cf020; border-top-color: #247cf0; border-right-color: #63cdfd; border-radius: 50%; animation: startup-spin 1.5s linear infinite; }
.startup-orbit::after { content: ""; position: absolute; top: 0; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: #f2b72d; box-shadow: 0 0 7px #ffd86e77; }
.startup-core { position: absolute; inset: 11px; border-radius: 50%; background: #5cafff; animation: startup-breathe 2s ease-in-out infinite; }
#startup-message { display: block; margin: 0 auto; max-width: 320px; color: #5b7595; font-size: 13px; line-height: 1.8; }
.startup-track { width: 100px; height: 3px; margin: 20px auto 0; border-radius: 4px; overflow: hidden; background: #247cf014; }
.startup-track::after { content: ""; display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #63cdfd, #247cf0); animation: startup-travel 2s ease-in-out infinite; }
#startup-retry { min-height: 38px; margin: 18px auto 0; padding: 8px 22px; border: 1px solid #ffffffcc; border-radius: 10px; background: #247cf0; color: white; font-family: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
#startup-retry:focus-visible { outline: 2px solid #145de7; outline-offset: 3px; }
#startup.is-error .startup-loader, #startup.is-error .startup-track { display: none; }
#startup.is-error #startup-message { margin-top: 24px; }
@keyframes startup-spin { to { transform: rotate(360deg); } }
@keyframes startup-breathe { 0%, 100% { opacity: .4; transform: scale(.7); } 50% { opacity: .9; transform: scale(1); } }
@keyframes startup-travel { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) {
  .startup-orbit, .startup-core, .startup-track::after { animation: none; }
}
@media (max-height: 420px) {
  .startup-content { transform: none; }
  .startup-loader { margin-top: 18px; margin-bottom: 10px; }
  .startup-track { margin-top: 12px; }
}
