/* Splash overlay yang muncul saat hard refresh sampai entry-client
   selesai mount. Di-load via <link rel="stylesheet"> di index.html
   (bukan <style> inline) supaya tidak diproses ulang oleh Vite html-proxy
   yang kadang ber-konflik dengan plugin vite:json saat dev server
   meng-handle request `.well-known/...`. */
#tb-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(175deg, #070d1a 0%, #0f172a 40%, #0c1631 100%);
  color: #e0f2fe;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  transition: opacity .35s ease, visibility .35s ease;
}
#tb-splash.tb-splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#tb-splash img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(56, 189, 248, .35));
  animation: tb-splash-pulse 2s ease-in-out infinite;
}
@keyframes tb-splash-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;  }
  50%      { transform: scale(1.06); opacity: .9; }
}
#tb-splash .tb-splash-dots {
  display: inline-flex;
  gap: 6px;
}
#tb-splash .tb-splash-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  animation: tb-splash-bounce 1.1s ease-in-out infinite;
}
#tb-splash .tb-splash-dots span:nth-child(2) { animation-delay: .15s; background: #7dd3fc; }
#tb-splash .tb-splash-dots span:nth-child(3) { animation-delay: .30s; background: #bae6fd; }
@keyframes tb-splash-bounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .55; }
  40%           { transform: scale(1);  opacity: 1;   }
}
/* Sembunyikan #app sampai splash di-remove agar CSS yang belum dimuat
   tidak menampilkan HTML mentah. */
body:has(#tb-splash:not(.tb-splash-hide)) #app {
  opacity: 0;
}
