/* Startup splash only (ADR 0016): shown before Angular renders, so it cannot use the app's styles. Keep colours in step with styles.css. */
.splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
}
.dark .splash {
  background: #09090b;
}
.splash svg {
  width: 72px;
  height: 72px;
  overflow: visible;
}
/* the yo-yo goes down and up along its string, which stretches with it */
.splash .disc {
  animation: splash-yoyo 1.1s ease-in-out infinite;
}
@keyframes splash-yoyo {
  50% {
    transform: translateY(7px);
  }
}
@keyframes splash-string {
  50% {
    transform: scaleY(3.2);
  }
}
.splash .logo-part {
  fill: #d4d4d8;
  stroke: #d4d4d8;
  animation: splash-fill 1.1s ease-in-out infinite alternate;
}
.dark .splash .logo-part {
  fill: #3f3f46;
  stroke: #3f3f46;
  animation-name: splash-fill-dark;
}
@keyframes splash-fill {
  to {
    fill: #0f766e;
    stroke: #0f766e;
  }
}
@keyframes splash-fill-dark {
  to {
    fill: #2dd4bf;
    stroke: #2dd4bf;
  }
}
.splash .logo-part.string {
  /* a zero-width line has no usable fill-box, so anchor the stretch at the top of the string in SVG units */
  transform-box: view-box;
  transform-origin: 12px 0.8px;
  animation:
    splash-fill 1.1s ease-in-out infinite alternate,
    splash-string 1.1s ease-in-out infinite;
}
.dark .splash .logo-part.string {
  animation:
    splash-fill-dark 1.1s ease-in-out infinite alternate,
    splash-string 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .splash .disc,
  .splash .logo-part.string,
  .dark .splash .logo-part.string {
    animation: none;
  }
  .splash .logo-part {
    animation: none;
    fill: #0f766e;
    stroke: #0f766e;
  }
  .dark .splash .logo-part {
    fill: #2dd4bf;
    stroke: #2dd4bf;
  }
}
