:root {
  color-scheme: dark;
  --void: #030102;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  overscroll-behavior: none;
}

body {
  /* Matches the first rendered frame, so there is no flash while loading. */
  background: radial-gradient(ellipse at 50% 50%, #0e0205 0%, var(--void) 62%);
}

#heart {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#heart:active {
  cursor: grabbing;
}

.ready #heart {
  opacity: 1;
}

.fallback {
  display: none;
  position: fixed;
  inset: 0;
  place-items: center;
}

.no-webgl #heart {
  display: none;
}

.no-webgl .fallback {
  display: grid;
}

.fallback-heart {
  width: min(52vmin, 340px);
  fill: #9c0c22;
  will-change: transform;
}
