/* Loading splash: shown instantly from the HTML, faded out by the app (src/lib/splash.js) once content is ready. */
#jkd-splash {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #ffffff 0, #eaf7fc 45%, #cfeaf6 100%);
  transition: opacity .45s ease, visibility .45s; font-family: system-ui, sans-serif;
  /* safety net: if the app never starts, reveal the page summary underneath */
  animation: jkd-splash-timeout .5s 12s forwards;
}
#jkd-splash.jkd-splash--out { opacity: 0; visibility: hidden; }
.jkd-splash__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.jkd-splash__stage { position: relative; width: 196px; height: 196px; }
.jkd-splash__logo { position: absolute; inset: 18px; width: 160px; height: 160px; border-radius: 50%; box-shadow: 0 14px 40px rgba(6, 61, 99, .18); animation: jkd-bob 2.6s ease-in-out infinite; }
.jkd-splash__ring { position: absolute; inset: 0; width: 196px; height: 196px; animation: jkd-spin 1.6s linear infinite; }
.jkd-splash__ring circle { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 270; }
.jkd-splash__ring .track { stroke: rgba(29, 111, 168, .12); stroke-dasharray: none; }
.jkd-splash__ring .arc { stroke: url(#jkd-splash-grad); }
.jkd-b { position: absolute; bottom: 30px; border-radius: 50%; border: 2px solid rgba(31, 163, 201, .55); background: rgba(255, 255, 255, .6); opacity: 0; animation: jkd-rise 2.8s ease-in infinite; }
.jkd-b1 { left: -14px; width: 10px; height: 10px; }
.jkd-b2 { left: -30px; width: 6px; height: 6px; animation-delay: .9s; }
.jkd-b3 { right: -16px; width: 12px; height: 12px; animation-delay: 1.5s; }
.jkd-b4 { right: -34px; width: 7px; height: 7px; animation-delay: .4s; }
.jkd-splash__text { margin: 0; color: #0b3a5e; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jkd-splash__dots span { display: inline-block; animation: jkd-dot 1.2s infinite; }
.jkd-splash__dots span:nth-child(2) { animation-delay: .2s; }
.jkd-splash__dots span:nth-child(3) { animation-delay: .4s; }
.jkd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes jkd-spin { to { transform: rotate(360deg); } }
@keyframes jkd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes jkd-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px) scale(1.1); opacity: 0; } }
@keyframes jkd-dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes jkd-splash-timeout { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .jkd-splash__logo, .jkd-b, .jkd-splash__dots span { animation: none; }
  .jkd-b { display: none; }
  .jkd-splash__ring { animation-duration: 4s; }
}
