/*
 * Flutter 起動前のスプラッシュ。起動後の AppLoadingStage(lib/widgets/app_loading_screen.dart)
 * と同じ並び(ワードマーク → 進捗バー → 文言)と配色(夜テーマ・design.md 5.2)にして、
 * 引き継ぎで見た目が跳ねないようにする。
 */
html,
body {
  min-height: 100%;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: #0d1433;
}

#app-startup-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
  /* 天井の光源(上端中央の明部)+藍夜のグラデーション。舞台照明層と同じ向き。 */
  background:
    radial-gradient(ellipse 60% 45% at 50% -8%, rgba(255, 211, 107, 0.16), rgba(255, 211, 107, 0) 100%),
    linear-gradient(180deg, #0d1433 0%, #070b1c 100%);
  color: #f4f1e6;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  pointer-events: auto;
}

.app-startup-splash__content {
  width: min(100%, 360px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.app-startup-splash__logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 0 32px;
}

.app-startup-splash__label {
  margin: 14px 0 0;
  color: #aab3d0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.app-startup-splash__bar {
  width: 200px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 11, 28, 0.55);
  box-shadow: inset 0 0 0 0.8px rgba(228, 179, 76, 0.35);
}

.app-startup-splash__bar::after {
  content: "";
  display: block;
  width: 64px;
  height: 100%;
  border-radius: inherit;
  background: #ffd36b;
  animation: app-startup-bar 1200ms ease-in-out infinite;
}

@keyframes app-startup-bar {
  0% {
    transform: translateX(-64px);
  }

  50% {
    transform: translateX(68px);
  }

  100% {
    transform: translateX(200px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-startup-splash__bar::after {
    animation: none;
  }
}
