:root {
  color-scheme: dark;
  font-family: "Avenir Next", "Century Gothic", sans-serif;
  color: #f2f4ee;
  background: #10151a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  position: absolute;
  top: max(2.25rem, env(safe-area-inset-top));
  right: max(3rem, env(safe-area-inset-right));
}

.motion {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #67747d;
  border-radius: 6px;
  background: #10151a;
  color: inherit;
  cursor: pointer;
}

.motion[hidden] {
  display: none;
}

.motion:hover {
  border-color: #bdffdc;
  color: #bdffdc;
}

.motion:focus-visible {
  outline: 2px solid #bdffdc;
  outline-offset: 4px;
}

.motion-icon {
  width: 0.65rem;
  height: 0.85rem;
  border-inline: 2px solid currentColor;
}

.motion.is-paused .motion-icon {
  width: 0.75rem;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 36rem) {
  .controls {
    top: max(1.5rem, env(safe-area-inset-top));
    right: max(1.25rem, env(safe-area-inset-right));
  }
}
