:root {
  color-scheme: dark light;
  --savv-background: #FF4A1C;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--savv-background);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#savv, canvas {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#savv {
  position: fixed;
  inset: 0;
}

/* The split coin while the app loads: its halves slide apart and back, as they do in every hero. */
#splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--savv-background);
  color: #fff;
  font: 500 16px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  transition: opacity .3s ease;
}

#splash .coin { width: 112px; height: 112px; overflow: visible; }
#splash .coin path { fill: #fff; animation: savv-part 1.6s cubic-bezier(.5, 0, .2, 1) infinite alternate; }
#splash .coin .bottom { animation-name: savv-part-back; }
@keyframes savv-part { from { transform: translateX(4px); } to { transform: translateX(-8px); } }
@keyframes savv-part-back { from { transform: translateX(-4px); } to { transform: translateX(8px); } }

#splash .slow { margin: 0; opacity: 0; transition: opacity .5s ease; }
#splash.is-slow .slow { opacity: .85; }
#splash .unsupported { max-width: 340px; }
#splash .unsupported p { margin: 0 0 10px; }
#splash .unsupported a { color: #fff; font-weight: 600; }
#splash.is-unsupported .coin path { animation: none; }
#splash.is-unsupported .slow { display: none; }

@media (prefers-reduced-motion: reduce) {
  #splash .coin path { animation: none; }
}
