/* =====================================================================
   STARTUP SPLASH – like a 2000s program loading, publisher credit at
   the foot. Shown once per browser session, about 2.5 s (--splash-ms),
   skippable with a click or key. Timing lives in tokens.css and is read
   by js/splash.js.
   ===================================================================== */
body.is-booting .launcher {
  visibility: hidden;
}

.splash {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: var(--z-splash);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-splash-fade) ease;
}

.splash.is-done {
  opacity: 0;
  pointer-events: none;
}

.splash__card {
  width: min(440px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  font-family: var(--chrome-font);
}

.splash__art {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 22px;
  background: var(--matcha-100);
}

.splash__art svg {
  width: 64px;
  height: 64px;
  flex: none;
}

.splash__name {
  margin: 0;
  font-family: var(--content-font);
  font-size: var(--fs-28);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--matcha-900);
  line-height: 1.1;
}

.splash__ed {
  font-size: var(--fs-12);
  color: var(--matcha-700);
}

.splash__load {
  padding: 18px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.splash__msg {
  font-size: var(--fs-12);
  color: var(--text-status);
  min-height: 15px;
}

/* segmented progress bar */
.bar {
  height: 16px;
  border: 1px solid var(--progress-line);
  border-radius: var(--radius-small);
  background: var(--paper);
  padding: 2px;
  box-shadow: var(--shadow-well);
}

.bar__fill {
  height: 100%;
  width: 0;
  background: var(--bg-progress);
  animation: fill var(--boot, var(--splash-ms)) steps(18, end) forwards;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

.splash__credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-12);
  color: var(--text-status);
  background: var(--paper);
}

.splash__credit img {
  height: 28px;
  width: auto;
  display: block;
}
