#exercise {
  --command-size: 30px;
  --command-gap: 4px;
}

#exercise-frame {
  width: 720px;
  touch-action: manipulation;
}

#instructions {
  width: max-content;
  max-width: 100%;

  background-color: white;
  border-radius: 3px;
  padding: 15px;
  margin: 0 auto 20px;
}

#instructions:empty {
  display: none;
}

#interface {
  display: grid;
  grid-template-columns: minmax(0, min-content);
  justify-content: center;
}

#plan.correct svg {
  animation: var(--animation-blink);
  box-shadow: 0 0 0 3px var(--green);
}

#plan.wrecked svg {
  animation: var(--animation-shake);
  box-shadow: 0 0 0 3px var(--red);
}

#plan {
  width: max-content;
  max-width: 100%;
  margin: auto;
}

#plan svg {
  display: block;
  margin: auto;
  max-width: 100%;
}

#plan svg .object {
  transform-box: fill-box;
  transform-origin: center;
}

#stack {
  margin-top: 10px;
}

#commands {
  width: max-content;
  max-width: 100%;
  margin: 20px auto 10px;
}
