/*
 * 起動スプラッシュ。アプリ本体（JS）の読み込みが終わるまで表示する。
 * 本体の CSS より先に効かせたいので、独立したファイルにして <head> で読み込む。
 */
html,
body {
  margin: 0;
  background: #12100e;
}
html[data-theme='light'],
html[data-theme='light'] body {
  background: #f2ede4;
}

#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font: 700 13px/1 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.3em;
  color: #ff9a3c;
}
#splash img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  animation: splash-pulse 1.6s ease-in-out infinite;
}
#splash .reel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 154, 60, 0.25);
  border-top-color: #ff9a3c;
  animation: splash-spin 0.9s linear infinite;
}

/* 起動に時間がかかったときだけ表示（public/boot.js） */
#splash-retry {
  display: none;
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 154, 60, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #ff9a3c;
  font: 700 13px/1 'Zen Kaku Gothic New', system-ui, sans-serif;
  letter-spacing: 0.05em;
}
#splash-retry.is-visible {
  display: block;
}

@keyframes splash-pulse {
  50% {
    transform: scale(0.94);
    opacity: 0.75;
  }
}
@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}
