html, body {
  margin: 0;
  height: 100%;
  background: #F6F3ED;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #F6F3ED;
  color: #4A5058;
  font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: opacity 360ms ease, transform 360ms ease;
}

#splash.done {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

#splash .mark {
  border-radius: 24px;
  box-shadow: 0 18px 40px -18px rgba(31, 35, 40, 0.55);
  animation: rise 700ms cubic-bezier(.2, .8, .2, 1) both;
}

#splash .bar {
  transform-box: fill-box;
  transform-origin: left center;
  animation: grow 1.6s cubic-bezier(.6, 0, .2, 1) infinite;
}

#splash .bar-2 { animation-delay: 120ms; }
#splash .bar-3 { animation-delay: 240ms; }

#splash .label { margin: 0; letter-spacing: .01em; }

#splash .progress {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #E3DDD2;
}

#splash .progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: #FF6B1A;
  animation: slide 1.1s ease-in-out infinite;
}

#splash .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Inside the website's phone frame the pointer looks like a fingertip. */
body.in-phone,
body.in-phone flutter-view,
body.in-phone flt-glass-pane {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='rgba(31,35,40,0.28)' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer !important;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  0% { transform: scaleX(.35); }
  45%, 60% { transform: scaleX(1); }
  100% { transform: scaleX(.35); }
}

@keyframes slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  #splash .mark, #splash .bar, #splash .progress span { animation: none; }
  #splash { transition: none; }
}
